上次编译的windows 32位的netcat 使用-e报错如下: invalid option --e
查看源码发现是代码中没有-e的支持修改如下,重新编译就ok了
修改代码如下: netcat.c 修改
...
/* If your shitbox doesn't have getopt, step into the nineties already. */
/* optarg, optind = next-argv-component [i.e. flag arg]; optopt = last-char */
// while ((x = getopt (argc, argv, "adg:G:hi:lLno:p:rs:tuvw:zx")) != EOF) {
while ((x = getopt (argc, argv, "adg:G:e:hi:lLno:p:rs:tuvw:zx")) != EOF) { //popexizi add for windows use -e
/* Debug (("in go: x now %c, optarg %x optind %d", x, optarg, optind)) */
switch (x) {
case 'a':
....
新编译完的nc可以在
https://github.com/popexizhi/TreasureChest-/tree/attack-tool/nc 找到
[popexizhi: 吐个槽,这个圈子真的好乱啊,看来以后用这样的工具要小心+10086了]
没有评论:
发表评论