7. Kali Linux basics commands
1. whoami command
whoami command is nothing but the concatenation of “who,” “am,” and “i” and displays the details of the current user once
the command is applied.
2. pwd command
pwd kali linux command is used for printing the working directory.
3. cd command
cd command is used for navigation. If you want to go to the downloads folder, you type “cd” and then “download,” this will
take you to the downloads folder and access the files.
4. ls command
ls command is one of the Kali Linux command that displays what each file contains and the directories they are stored in.
5. mkdir command
mkdir linux command helps to create a new directory. It is used quite often.
8. Kali Linux basics commands
6. cat > command
cat > linux command enables the user to create a file with any extension.
7. cat command
cat linux command enables the user to read files.
8. cp command
cp command is used for basic copying text or similar purposes.
9. mv command
mv command is a basic command in linux which is used to move files between directories.
10. rm command
rm command in Kali Linux is used to delete files and directories.
11. nano command
nano command is used to read and write the files.
9. Kali Linux Package manager to install packages
1. Install:
sudo apt-get install {package_name}
2. Update: Before installing any packages on the system, it is recommended that update first.
sudo apt-get update
3. Upgrade: The upgrade function is used for download and install all newer version of installed software package in Kali
Linux.
sudo apt-get upgrade
4. Distribution Upgrade: It is used to upgrade the distribution of current version of linux installed.
sudo apt-get dist-upgrade
5. Remove/ Uninstall software in Kali Linux:
sudo apt-get remove {package_name}
10. Kali Linux Package manager to install packages
6. Auto Remove: It is used to remove the old version of package that are no longer required.
sudo apt-get autoremove
7. Using two or more functions together:
sudo apt-get update && sudo apt-get upgrade
sudo apt-get autoremove && sudo apt-get autoclean
It is used to perform multiple operations at a time with multiple commands in a single line.
21. MySQL server setup and service initiation
create user admin@localhost identified by ‘pass’;
grant all on dvwa.* to admin@localhost;
flush privileges;
27. How to configure Burp Suite with Firefox?
1. Open Burp Suite and click on start Temporary project.
2. Go to PROXY Tab and click proxy settings.
3. Look for the IP and port. By default it should be 127.0.0.1:8080.
4. Open Firefox and go to settings.
5. In settings search bar, search for PROXY.
6. Enter the details of local IP and Port to Manual Proxy.
7. Open a new tab and type https://burp and click on download CA Certificate.
8. Once it is downloaded, again go back to settings tab and search for certificate.
9. Then click on import and select the downloaded certificate.
10. Now, open a NEW TAB and open burp suite as well.
11. Turn on the intercept and type http://localhost. It must intercept it.
12. If it’s not intercepting, then go back to Firefox and in search bar type about:config and hit enter.
13. Then turn ON the network.proxy.allow_hijacking_localhost to TRUE.
14. Now, you’re all set.
15. Happy Hacking!
32. Command Injection
Try these commands:
1. Enter your local IP i.e. 127.0.0.1. Then hit enter.
2. Then type this “ 127.0.0.1;ls ”. If you’re seeing any message, carefully
observe it and look for any critical file of directory.
3. Then try this: “ 127.0.0.1; cat /etc/shadow/ ”, it may reveal password
directory, if available.
4. Try this if previous one didn’t worked: “ ;cat /etc/passwd ”.
5. You can also try this to find the username: “ ;whoami ”.
42. More OSINT Techniques
- Introduction to OSINT and why should we study it?
- Shodan, Builtwith, WHOIS, Wappalyzer
- IP Tracking and Social Media OSINT
- Real-world examples and case studies
- Open-source vulnerable cameras and more
- Exif Data Viewer
- URL Masking
- Taking access of someone’s camera for Educational Purpose only (CamPhish)