Johanes Ronaldo

Just another Binusian blog site

Ethical Hacking Week 5

without comments

It is week 5 of the ethical hacking class, and this week we learn about enumeration. Enumeration is one of the process in hacking. This is the process where the attacker uses tools to find information about the victim.

This week is about BASH SCRIPTING. First, we need to create a bash code and execute them. 

Then once in the leafpad, insert the first line “#!/bin/bash“. This indicates that we want to use the bash shell interpreter. Now lets echo out a string and save it. You should now have something like this.

Now when you try to run it in the terminal you will not have the permission to execute it. what you have to do is give it permission with this command . Execute the file again. You should see what you wrote:

Now lets add “ifconfig” command to the bash_ex.sh file.

Now you can see how you can run a command by writing it in the leafpad.

Lets use this lesson to nmap a certain ip address. First create a variable that will read the the web you want to nmap and which port. Once you are done, you should add the nmap command with the variable and it should look like the image below.

What the program is going to do is ask for the input of web and port variable. Then it will use the variable to send a SYN scan to the web.

You have now done an nmap with user input!

Written by jronaldo

April 10th, 2018 at 8:10 am

Posted in Uncategorized