在扫描ip范围后,它会以如此糟糕的格式输出ip。有人可以帮我改变输出格式或使用grep或awk命令更改它吗?
open tcp 3389 77.239.225.198 1485353988
open tcp 3389 85.202.4.94 1485353988
open tcp 3389 217.14.53.187 1485353988
open tcp 3389 85.26.253.50 1485353988
open tcp 3389 87.238.96.58 1485353988
open tcp 3389 91.218.45.9 1485353988
open tcp 3389 178.46.167.147 1485353988
我希望它看起来像
77.239.225.19
85.202.4.94
217.14.53.187
85.26.253.50
87.238.96.58
91.218.45.9
178.46.167.147
答案 0 :(得分:1)
只需使用Awk
作为
masscan -iL ipp.txt --open --rate 60000 -p3389 | awk '{print $4}'
使用重定向运算符
将其写入新文件masscan -iL ipp.txt --open --rate 60000 -p3389 | awk '{print $4}' > ipList.txt
答案 1 :(得分:0)
通过这种方式,您无需保存任何内容,而是即时完成所有操作。
Type '{ ids: never[]; }' is not assignable to type 'AddressesType'.
Type '{ ids: never[]; }' is not assignable to type '{ [x: string]: iAddressItem | undefined; [x: number]: iAddressItem | undefined; }'.
Property 'ids' is incompatible with index signature.
Type 'never[]' is missing the following properties from type 'iAddressItem': firstName, lastName, street(2322)