mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-12-24 00:31:11 +02:00
67 lines
2.3 KiB
Bash
67 lines
2.3 KiB
Bash
#!/bin/bash
|
|
|
|
arp > arp.out
|
|
arp -v > arp-v.out
|
|
arp -a > arp-a.out
|
|
df > df.out
|
|
df -h > df-h.out
|
|
dig www.google.com AAAA > dig-aaaa.out
|
|
dig www.cnn.com www.google.com > dig.out
|
|
dig -x 1.1.1.1 > dig-x.out
|
|
env > env.out
|
|
free > free.out
|
|
free -h > free-h.out
|
|
history > history.out
|
|
ifconfig > ifconfig.out
|
|
|
|
sudo iptables -A INPUT -i lo -j ACCEPT
|
|
sudo iptables -A OUTPUT -o lo -j ACCEPT
|
|
sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
|
sudo iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
|
sudo iptables -A INPUT -m conntrack --ctstate INVALID -j DROP
|
|
sudo iptables -A INPUT -i lo -s 15.15.15.51 -j DROP
|
|
sudo iptables -A INPUT -p tcp -s 15.15.15.0/24 --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
|
|
sudo iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT
|
|
sudo iptables -L -t filter > iptables-filter.out
|
|
sudo iptables --line-numbers -L -t filter > iptables-filter-line-numbers.out
|
|
sudo iptables -L -t nat > iptables-nat.out
|
|
sudo iptables -L -t mangle > iptables-mangle.out
|
|
sudo iptables -L -t raw > iptables-raw.out
|
|
sudo iptables -nvL -t filter > iptables-filter-nv.out
|
|
|
|
sleep 11 & sleep 12 & sleep 13 & sleep 14 &
|
|
jobs > jobs.out
|
|
|
|
ls / > ls.out
|
|
ls -al / > ls-al.out
|
|
ls -alh / > ls-alh.out
|
|
lsblk > lsblk.out
|
|
lsblk -o +KNAME,FSTYPE,LABEL,UUID,PARTLABEL,PARTUUID,RA,MODEL,SERIAL,STATE,OWNER,GROUP,MODE,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE,DISC-ALN,DISC-GRAN,DISC-MAX,DISC-ZERO,WSAME,WWN,RAND,PKNAME,HCTL,TRAN,REV,VENDOR > lsblk-allcols.out
|
|
lsmod > lsmod.out
|
|
lsof > lsof.out
|
|
sudo lsof > lsof-sudo.out
|
|
mount > mount.out
|
|
|
|
rm -rf /tmp/jc
|
|
git clone https://github.com/kellyjonbrazil/jc.git /tmp/jc & sleep 1; netstat > netstat.out
|
|
netstat -p > netstat-p.out
|
|
netstat -l > netstat-l.out
|
|
sudo netstat -lnp > netstat-sudo-lnp.out
|
|
sudo netstat -aeep > netstat-sudo-aeep.out
|
|
|
|
ps -ef > ps-ef.out
|
|
ps axu > ps-axu.out
|
|
route > route.out
|
|
route -vn > route-vn.out
|
|
uname -a > uname-a.out
|
|
uptime > uptime.out
|
|
w > w.out
|
|
|
|
cat /etc/hosts > hosts.out
|
|
cat /etc/fstab > fstab.out
|
|
|
|
systemctl -a > systemctl.out
|
|
systemctl -a list-unit-files > systemctl-luf.out
|
|
systemctl -a list-sockets > systemctl-ls.out
|
|
systemctl -a list-jobs > systemctl-jobs.out
|