OSCP Pentest With KaliLinux

Kali Repos

deb http://security.kali.org/ kali/updates main contrib non-free
deb-src http://security.kali.org/ kali/updates main contrib non-free

Basic Bash

grep "href=" icq.html | cut -d"/" -f3 | grep icq.com |sort -u
grep "href=" icq.html | cut -d"/" -f3 | grep icq.com |sort -u > icqservers.txt
nano doicqips.sh
[
	#!/bin/bash
	
	for name in $(cat icqservers.txt);do
	host $name;
	done;
]
chmod 755 doiqcq.sh
nano doicqips.sh
[
	#!/bin/bash
	
	for name in $(cat icqservers.txt);do
	host $name |grep "has address";
	done;
]

nano doicqips.sh
[
	#!/bin/bash
	
	for name in $(cat icqservers.txt);do
	host $name |grep "has address" |cut -d" " -f4;
	done;
]

# ./doicqips.sh > ip.txt

pingsweep.sh

# nano pingsweep.sh
[
	#!/bin/bash

	for ip in (seq 200 250); do
	ping -c 1 192.168.90.$ip |grep "bytes from" |cut -d" " -f 4 | cut -d":" -f 1 & 
	done

chmod 755 pingsweep.sh

GHDB


intitle:"Antichat Shell" "disable functions"

ZoneTransfer

#!/bin/bash

echo "[*] Please enter a domain name:"
read domain

for fqdn in $(host -t ns $domain |cut -d" " -f4); do
host -l $domain $fqdn |grep "has address"
done