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: How to Track Who Is Sms Bombing Me . 4 Replies
1 mo ago -
Forum Thread: Removing Pay-as-You-Go Meter on Loan Phones. 1 Replies
1 mo ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 3 Replies
2 mo ago -
Forum Thread: moab5.Sh Error While Running Metasploit 17 Replies
3 mo ago -
Forum Thread: Execute Reverse PHP Shell with Metasploit 1 Replies
4 mo ago -
Forum Thread: Install Metasploit Framework in Termux No Root Needed M-Wiz Tool 1 Replies
5 mo ago -
Forum Thread: Hack and Track People's Device Constantly Using TRAPE 35 Replies
5 mo 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
6 mo ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
6 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
7 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
9 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
9 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
9 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
9 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
9 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
9 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
10 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
10 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
11 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
11 mo ago
-
How To: Use Burp & FoxyProxy to Easily Switch Between Proxy Settings
-
How To: Unlock Facial Detection & Recognition on the Inexpensive ESP32-Based Wi-Fi Spy Camera
-
How To: Use SpiderFoot for OSINT Gathering
-
How To: Pop a Reverse Shell with a Video File by Exploiting Popular Linux File Managers
-
How To: Scan for Vulnerabilities on Any Website Using Nikto
-
How To: Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019
-
How To: The Top 80+ Websites Available in the Tor Network
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To: Stealthfully Sniff Wi-Fi Activity Without Connecting to a Target Router
-
How To: Flash Kali NetHunter on OnePlus and Nexus Devices (Most) As a Secondary ROM
-
How To: Hide a Virus Inside of a Fake Picture
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
How To: Dox Anyone
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: Set Up a Wi-Fi Spy Camera with an ESP32-CAM
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: Crack Wi-Fi Passwords—For Beginners!
-
How To: Conduct Wireless Recon on Bluetooth, Wi-Fi & GPS with Sparrow-wifi
-
How To: Get Root with Metasploit's Local Exploit Suggester
-
How To: Create & Obfuscate a Virus Inside of a Microsoft Word Document
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