Skip to content

Commit

Permalink
tcpdump
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache committed Jun 7, 2020
1 parent fe9217c commit 9711850
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/find.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ find /data -name "*.php" -type f -print0|xargs -0 egrep "(phpspy|c99sh|milw0rm|e
find /data -name "*.php" -type f -print0|xargs -0 egrep "aaa"|awk -F: '{print $1}'|sort|uniq
find . -name "*.php" -type f -print0| xargs -0 egrep "aaa|bbb"| egrep "aaa"

find . -name "*.php" | xargs grep "aaa"

##cd /var/cache/yum找*.rpm移动到一个文件夹
find . -name "*.rpm" -exec cp {} /root/111 \;

Expand Down
20 changes: 20 additions & 0 deletions shell/tcpdump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@



tcpdump -i em2 port 19000
tcpdump -i eth0 -nn port 21

tcpdump -vv -nn -i em2 tcp port 19000 and host 192.168.1.131

tcpdump -vv -nn -i em2 tcp port 19000

tcpdump -vv -nn -i em2 tcp port 19000 -p

tcpdump -i em2 -s 0 -c 100000 -w 0809.cap

tcpdump -i em2 -s 0 -c 10000 -w 1.cap
tcpdump -i em2 -s 0 -c 10000 -w 0808.cap

ss -an | grep 19000|grep -i es | awk '{ print $6 }' | awk -F: '{ print $1}' | sort | uniq -c | sort -nr | head -n 30

echo ok

0 comments on commit 9711850

Please sign in to comment.