2019年7月15日 星期一

檢查DLL Dependencies

以下的cmd的目的是檢查一個exe或dll需要哪些其他的DLL才能順利執行。如果有安裝Visual Studio便能使用這個方法。

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /dependents PATH-TO-EXE

另外也可以用該exe dump file,就能一次過查看包括dependent dll在內所有dll的dependencies。

2019年6月3日 星期一

從pcap中過濾部分資料,做一個新的pcap


tshark -F libpcap -Y "ip.dst==1.2.3.4 and udp.port==110" -r "Input.pcap" -w "Output.pcap"


解釋:
-F libpcap 以pcap作為檔案格式(而非pcapng,因為部分軟件無法處理這種格式)
-Y "display filter" 新pcap中只需要符合filter的資料
-r "Input.pcap" 原本的pcap
-w "Output.pcap" 新的pcap位置


參考: