So guys,what is best for creating hacks?Python or C++?
Do you have some resources from where i can learn one of those?
Forum Thread: Python vs C++
- Hot
- Active
-
Forum Thread: Gaining Access into the Victim's Whatsapp on Android 12 Replies
3 days ago -
Forum Thread: Whatsapp Hack? 19 Replies
3 days ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
6 days ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 2 Replies
3 wks ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
3 wks ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
2 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
2 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
2 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
3 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
3 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
3 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
3 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
3 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
4 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
4 mo ago -
Forum Thread: How to Run and Install Kali Linux on a Chromebook 18 Replies
5 mo ago -
Forum Thread: How to Find Admin Panel Page of a Website? 13 Replies
6 mo ago -
Forum Thread: can i run kali lenux in windows 10 without reboting my computer 4 Replies
6 mo ago -
Forum Thread: How to Hack School Website 11 Replies
6 mo ago -
Forum Thread: Make a Phishing Page for Harvesting Credentials Yourself 8 Replies
6 mo ago
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Scan for Vulnerabilities on Any Website Using Nikto
-
BT Recon: How to Snoop on Bluetooth Devices Using Kali Linux
-
How To: Dox Anyone
-
How To: Use Burp & FoxyProxy to Easily Switch Between Proxy Settings
-
How To: Brute-Force Nearly Any Website Login with Hatch
-
How To: Intercept Images from a Security Camera Using Wireshark
-
How To: Exploit WebDAV on a Server & Get a Shell
-
How To: Phish Social Media Sites with SocialFish
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: Find Passwords in Exposed Log Files with Google Dorks
-
Hack Like a Pro: How to Find Directories in Websites Using DirBuster
-
Hacking macOS: How to Hack a Mac Password Without Changing It
-
Steganography: How to Hide Secret Data Inside an Image or Audio File in Seconds
-
How to Hack Wi-Fi: Cracking WPA2-PSK Passwords Using Aircrack-Ng
-
How To: Use Hash-Identifier to Determine Hash Types for Password Cracking
-
How To: Exploit Shellshock on a Web Server Using Metasploit
-
How to Hack Wi-Fi: Disabling Security Cameras on Any Wireless Network with Aireplay-Ng
-
How To: The Top 80+ Websites Available in the Tor Network
4 Responses
Cezar:
Python is best for creating scripts. These are usually tools like many that we use here on Null Byte.
C++ and C are often used for developing exploits. This is more advanced and not usually for the novice.
There are several tutorial here on Null Byte on both.
OTW
Each has it's advantages and drawbacks. There are 2 major differences as I see it between Python and C++. One is syntax. These 2 languages could not look more different. Where C++ requires block delimiters, Python relies on indentation.
The other difference is probably the most important. Python is an interpreted language, meaning Python code will execute on any platform capable of running the interpreter. C++ must be compiled for specific platforms. In other words, you'll have one build for Windows, another build for Linux, and so on. This of course is a big disadvantage to C++ if you need to run on multiple platforms. But the advantage to compiling code into an executable is that it runs very fast and needs no interpreting. So if you're looking to compromise a Windows machine that doesn't have Python installed (probably most typical Windows workstations, unless you're hacking a development company), then your Python script is worthless unless you use something like py2exe to compile it down to an executable.
Rule of thumb:
if code will be run on your machine (attacker) better code it in python (easeir to write and customize)
if code will be run on victim's pc, better code it in c/c++. It's unlikely he has pyton installed, also he would be able to read the source. Also, your executable can be packed and protected against VM, debugger, etc..
You can always turn your python script to .exe but they will be way bigger and not so efficient as native code.
A good resource for both, like OTW said, is the how-to section.
Python is great for automating things in hacking (same as Ruby) the C family of languages are good to know because most programs and servers are written in them.
Share Your Thoughts