Hacks & Perks
174 subscribers
2 files
33 links
This channel is intended to provide and share experience related with IT/IT Security
加入频道
Альтернативный метод для поста выше:

net rpc <command> -I <Win_PC_IP> -U username%password

#hacks #psexec #alter #admin #pentest
Когда из-под Linux нужно вытащить инфу из реестра с машины на Windows, например хостнейм:

#!/bin/bash
host="$1"
login_pass=\\Administrator%\<password>
rpc_cmd="net rpc registry enumerate"
reg_cname="HKLM\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName"
reg_autorun="HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"
cname=$rpc_cmd $reg_cname -I $host -U $login_pass | grep -A 2 ComputerName | tail -1 | sed -r 's/^[^"]+//' | sed -r 's/\"//g'
echo HOSTNAME = "$cname"

От себя добавлю, что таким способом можно прописать свой прокси сервер на машине-жертве, тем самым слушать трафик.

(c) @offsec

#bash #registry #hacks
Когда нужно создать словарь для брутфорса на основе какого-либо сайта:

cewl -m 4 -w ./dict.txt http://victim.com

(c) @offsec

#dictionary #bruteforce #hacks
Когда сделал бэкконнект через веб-шелл на свой сервер и хочется интерактивного шелла:

python -c 'import pty; pty.spawn("/bin/sh")'

и можно развлекаться по полной :)

(c) @offsec

#tty #webshell #python #backconnect #hacks