This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
cat x.bin |nc -l 12345 | |
client: | |
nc host 12345 |pv -rb >x.bin | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$lsof -ni:10001 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
aggregato 14790 optman 12u IPv4 90413759 0t0 TCP 192.168.100.3:37582->119.188.72.131:10001 (ESTABLISHED) | |
aggregato 14790 optman 14u IPv4 90413760 0t0 TCP 192.168.100.3:44111->115.231.155.86:10001 (ESTABLISHED) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ mkdir tcpflow | |
~$ cd tcpflow/ | |
~/tcpflow$ sudo tcpflow -i any | |
tcpflow: listening on any | |
^Ctcpflow: terminating | |
~/tcpflow$ ls | |
172.017.000.002.08080-192.168.100.003.58240 172.019.000.004.33697-172.019.000.003.04150 | |
172.017.000.009.09200-172.017.000.010.49593 172.019.000.004.35546-172.019.000.003.04150 | |
172.017.000.010.49593-172.017.000.009.09200 172.019.000.004.37704-172.019.000.003.04150 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ngrep -i "google" -d any -q | |
interface: any | |
match: google | |
U 192.168.100.3:50107 -> 192.168.100.1:53 | |
.............www.google.com..... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --extraintf rc --rc-host 0.0.0.0:999 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <event2/bufferevent.h> | |
#include <event2/buffer.h> | |
#include <event2/event.h> | |
#include <event2/dns.h> | |
#include <arpa/inet.h> | |
#include <iostream> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <event2/bufferevent_ssl.h> | |
#include <event2/bufferevent.h> | |
#include <event2/buffer.h> | |
#include <event2/event.h> | |
#include <event2/dns.h> | |
#include <openssl/ssl.h> | |
#include <iostream> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.log -t | head -n 1 | xargs tail -f |grep xxxx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Total DISK READ : 214.84 K/s | Total DISK WRITE : 337.08 K/s | |
Actual DISK READ: 214.84 K/s | Actual DISK WRITE: 848.27 K/s | |
PID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND | |
152 be/3 root 0.00 B/s 0.00 B/s 0.00 % 94.28 % [jbd2/sda1-8] | |
10138 be/4 root 214.84 K/s 0.00 B/s 0.00 % 1.57 % bf_server -rep=/bfp2p/cache -tcp=:9998 | |
10359 be/4 root 0.00 B/s 337.08 K/s 0.00 % 0.12 % python3 /bfp2p/bin/rpc_server.py -nsqd_addr nsqd:4150 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo conntrack -L |head | |
conntrack v1.4.1 (conntrack-tools): 213 flow entries have been shown. | |
tcp 6 404458 ESTABLISHED src=172.18.0.8 dst=172.18.0.5 sport=46900 dport=50051 src=172.18.0.5 dst=172.18.0.8 sport=50051 dport=46900 [ASSURED] mark=0 use=1 | |
udp 17 179 src=172.18.0.6 dst=115.54.184.202 sport=9909 dport=9909 src=115.54.184.202 dst=192.168.1.15 sport=9909 dport=9909 [ASSURED] mark=0 use=1 | |
udp 17 179 src=172.18.0.6 dst=61.52.121.141 sport=9909 dport=9909 src=61.52.121.141 dst=192.168.1.15 sport=9909 dport=9909 [ASSURED] mark=0 use=1 | |
udp 17 167 src=172.18.0.6 dst=27.42.189.212 sport=9909 dport=9909 src=27.42.189.212 dst=192.168.1.15 sport=9909 dport=9909 [ASSURED] mark=0 use=1 | |
udp 17 120 src=172.18.0.6 dst=221.218.229.187 sport=9909 dport=13573 src=221.218.229.187 dst=192.168.1.15 sport=13573 dport=9909 [ASSURED] mark=0 use=1 | |
... |