Penetration Test - Using_Scripting_in_Pen_Testing(5)
2020-12-18 20:34
标签:written argv method rails methods close quick run esc Portscan.rb Run the following commands Penetration Test - Using_Scripting_in_Pen_Testing(5) 标签:written argv method rails methods close quick run esc 原文地址:https://www.cnblogs.com/keepmoving1113/p/14129433.htmlRuby Script
Demo
#!/usr/bin/ruby
require ‘socket‘
TARGET = ARGV[0] || ‘192.168.2.22‘
MINPORT = ARGV[1] || 22
MAXPORT = ARGV[2] || 80
$i = MINPORT.to_i
while $i
sudo ruby portscan.rb 192.168.2.22 22 80
sudo ruby portscan.rb 192.168.2.22 20 80
QUICK REVIEW
上一篇:原生js获取兄弟元素
下一篇:JS高级---面向对象
文章标题:Penetration Test - Using_Scripting_in_Pen_Testing(5)
文章链接:http://soscw.com/index.php/essay/37169.html