永发信息网

perl 程序问题

答案:2  悬赏:50  手机版
解决时间 2021-03-14 19:13
  • 提问者网友:沉默菋噵
  • 2021-03-14 02:44
下边PERL程序是对路由器登陆密码进行暴力破解的代码。密码从1000开始累加
但是有一个问题就是程序只能执行到1003 然后就退出了,找了很久都没找到问题,请大家帮忙给看看。(代码较长超出字符限制,所以上传图片,麻烦有兴趣的朋友手打一下)

我在我电脑上测试结果如下
1000 failed
1001 failed
1002 failed
1003 failed
然后本来应开始测试1004,但程序在这里终止了。



最佳答案
  • 五星知识达人网友:大漠
  • 2021-03-14 03:07
我试过了,我这里是正常的,可以一直下去(不过也就试到了4000多而已)
只是有个特点,大约每300多次以后,会出现类似暂停的效果(应该是connection时间变长吧)
然后又可以连续300多条,估计是路由器自己的保护机制

所以,程序应该是没有问题的,下面是结果

2177 failed
2178 failed
2179 failed
2180 failed
2181 failed
2182 failed
2183 failed
2184 failed
2185 failed
2186 failed
2187 failed
2188 failed
2189 failed
2190 failed
2191 failed
2192 failed
2193 failed
2194 failed
2195 failed
2196 failed
2197 failed
2198 failed
2199 failed
2200 failed
2201 failed
2202 failed
2203 failed
2204 failed
2205 failed
2206 failed
2207 failed
2208 failed
2209 failed
2210 failed
2211 failed
2212 failed
2213 failed
2214 failed
2215 failed
2216 failed
2217 failed
2218 failed
2219 failed
2220 failed
2221 failed
2222 failed
2223 failed
2224 failed
2225 failed
2226 failed
2227 failed
2228 failed
2229 failed
2230 failed
2231 failed
2232 failed
2233 failed
2234 failed
2235 failed
2236 failed
2237 failed
2238 failed
2239 failed
2240 failed
2241 failed
2242 failed
2243 failed
2244 failed
2245 failed
2246 failed
2247 failed
2248 failed
2249 failed
2250 failed
2251 failed
2252 failed
2253 failed
2254 failed
2255 failed
2256 failed
2257 failed
2258 failed
2259 failed
2260Terminating on signal SIGINT(2)
输出完成 (耗时 11 秒) - 已被用户取消。
全部回答
  • 1楼网友:忘川信使
  • 2021-03-14 04:36
perl程序和其他的shell程序一样运行。如果该perl程序有x位(即该perl程序是可运行的"ls -l <文件名>" 查看),就可以直接键入程序名。否则,用"perl <文件名>" 来运行。用户对该perl程序要有运行权。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯