Posts

Showing posts from April, 2022

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 ...

10 Programing With Bash And Create A Script For Hacking, Free Hacking Complete Course Step By Step

Free Hacking Complete Course Step By Step Programming For Scripts In this blog we will look at some basic examples of computer programming. We will look at writing programs to automate various useful tasks in multiple programming languages. Even though we use prebuilt software for the majority of this book, it is useful to be able to create your own programs. Bash Scripting In this section we’ll look at using Bash scripts to run several commands at once. Bash scripts, or shell scripts, are files that include multiple terminal commands to be run. Any command we can run in a terminal can be run in a script. Ping We’ll call our first script pingscript.sh. When it runs, this script will perform a ping sweep on our local network that sends Internet Control Message Protocol (ICMP) messages to remote systems to see if they respond. We’ll use the ping tool to determine which hosts are reachable on a network. (Although some hosts may not respond to ping requests and may be up despite not being ...

9 Using Kali Linux Command Line , Free Hacking Complete Course Step By Step

Free Hacking Complete Course Step By Step Creating a New File or Directory To create a new, empty file called myfile, use the touch command. root@kali:# touch myfile To create a new directory in your current working directory, enter mkdir  directory as shown here. root@kali:~# mkdir mydirectory root@kali:~# ls Desktop           mydirectory           myfile root@kali:~# cd mydirectory/ Use ls to confirm that the new directory has been created, and then  change to mydirectory using cd . Copying, Moving, and Removing Files To copy a file, use the cp command as shown here. root@kali:/mydirectory# cp /root/myfile myfile2 The syntax is cp source destination. When using cp, the original file is  left in place, and a copy is made at the desired destination. Similarly, you can move a file from one location to another using the  mv command. The syntax is identical to cp, but this time the file is removed  from th...