11 Programing With Python and Create Script For Hacking, Free Hacking Complete Course Step By Step
Free Hacking Complete Course Step By Step Python Scripting For Hacking Linux systems typically come with interpreters for other scripting languages such as Python and Perl. Interpreters for both languages are included in Kali Linux. In upcoming blogs, we’ll use Python to write our own exploit code. For now, let’s write a simple Python script and run it in Kali Linux just to demonstrate the basics of Python scripting. For this example we’ll do something similar to our first Netcat example in upcoming blogs. We’ll attach to a port on a system and see if the port is listening. A starting point for our script is shown here. #!/usr/bin/python (1) ip = raw_input("Enter the ip: ") (2) port = input("Enter the port: ") (3) In the previous section, the first line of our script told the terminal to use Bash to interpret the script. We do the same thing here, pointing to the Python interpreter installed on Kali Linux at /usr/bin/python (1) . We’ll begin by prompting the user ...