Categorygithub.com/lixiaolong/golang
module
0.0.0-20200505094810-c958644977be
Repository: https://github.com/lixiaolong/golang.git
Documentation: pkg.go.dev

# README

golang小程序

bytesbuffer

自己写的包,扩展了bytes标准包中的buffer,添加了几个方法,支持如下的转换

// \x31\x32\x33\x34    	-> 1234
// %31%32%33%34		      -> 1234
// 31323334			        -> 1234

// 1234 + prefix("%")	  -> %31%32%33%34
// 1234 + prefix("\x")	-> \x31\x32\x33\x34
// 1234 + prefix("")	  -> 31323334
WriteByteString:    往buffer中写入形如\x31\x32\x33\x34的字符串,写入后内容为1234
ByteString:        将buffer转换成字符串,1234会被转换成31323334,注意转换完成后buffer也被清空了
WriteToByteString: 将buffer转换成字符串,并写入到文件,1234会被转换成31323334,转换完成后buffer被清空
Str_to_hex:        将一个字符串做如下转换,1234     -> 31323334
Hex_to_str:        将一个字符串做如下转换,31323334 -> 1234

nmap_conf

从配置文件中读取参数,然后传递给nmap去执行,主要是windows下的cmd命令有长度限制,超过一定长度就无法执行,而有时候nmap需要传递非常长的参数(比较少),例如-p选项,就不支持从文件中读取。

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author