OSCP Security Technology - Introduction

OSCP Security Technology - Introduction

Modules
  • Introduction to Kali Linux
  • Information Gathering
  • Scanning
  • Enumeration
  • Netcat
  • Buffer Overflows
  • Exploitation
  • WebApp Exploitation
  • File Transfers
  • Privilege Escalation
  • Post Exploitation
  • Capstone
Thoughts
  • Have Fun
  • Try Harder
Common Commands
  • pwd
  • man
  • ls
  • cd
  • mkdir
  • rmdir
  • cp
  • mv
  • locate
  • adduser
  • su
  • sudo
  • echo
  • cat
  • nano
  • chmod
  • ifconfig
  • ping
Services
  • HTTP - /var/www/html

    - service apache2 start
    - systemctl enable apache2
    - service apache2 stop
    

    image-20210605130033972

  • SSH

    service ssh start
    systemctl enable ssh
    
    

    image-20210605132440681

  • Postgresql

    service postgresql start
    systemctl enable postgresql
    
Bash Scripting in Kali Linux
ping 192.168.2.23
ping -c 1 192.168.2.23
ping -c 1 192.168.2.23 | grep "64 bytes"
ping -c 1 192.168.2.23 | grep "64 bytes" | cut -d " " -f 4
ping -c 1 192.168.2.23 > ping.txt
cat ping.txt
cat ping.txt | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//'
ping -c 1 192.168.2.23 | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//'

image-20210605135822733

for ip in $(seq 1 254); do ping -c 1 192.168.2.$ | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//' & done

image-20210605140610040

nano pingsweep.sh
#!/bin/bash

if [ "$1" == "" ]
then
echo "Usage: ./pingsweep.sh [network]"
echo "Example: ./pingsweep.sh 192.168.2"
else
for ip in `seq 1 254`; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | sed 's/.$//' & done
fi

image-20210605144102264

posted @ 2021-06-05 14:51  晨风_Eric  阅读(49)  评论(0编辑  收藏  举报