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: Changing IP Address 9 Replies
1 day ago -
Forum Thread: When My Kali Linux Finishes Installing (It Is Ready to Boot), and When I Try to Boot It All I Get Is a Black Screen. 8 Replies
1 wk ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
2 wks ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 2 Replies
1 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
1 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
3 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
3 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
3 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
4 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
5 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
5 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: Dox Anyone
-
How To: Use Command Injection to Pop a Reverse Shell on a Web Server
-
How To: Exploit WebDAV on a Server & Get a Shell
-
How To: Target Bluetooth Devices with Bettercap
-
How To: Extract Bitcoin Wallet Addresses & Balances from Websites with SpiderFoot CLI
-
How to Hack Wi-Fi: Build a Software-Based Wi-Fi Jammer with Airgeddon
-
How To: Run Your Favorite Graphical X Applications Over SSH
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: Use Burp & FoxyProxy to Easily Switch Between Proxy Settings
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Exploit EternalBlue on Windows Server with Metasploit
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: Enumerate SMB with Enum4linux & Smbclient
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
How To: Gain SSH Access to Servers by Brute-Forcing Credentials
-
How To: Find Identifying Information from a Phone Number Using OSINT Tools
-
How To: Perform Advanced Man-in-the-Middle Attacks with Xerosploit
-
How To: Upgrade a Dumb Shell to a Fully Interactive Shell for More Flexibility
-
How To: Use MDK3 for Advanced Wi-Fi Jamming
-
How To: Create a Persistent Back Door in Android Using Kali Linux:
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