08e8d462fe
RED PILL 🔴 💊
20 lines
318 B
Text
20 lines
318 B
Text
import "pe"
|
|
|
|
//Detect capabilities of opening network sockets
|
|
|
|
rule winsocks : feature networking windows
|
|
{
|
|
meta:
|
|
description = "Imports Winsock Library"
|
|
|
|
condition:
|
|
// MZ at the beginning of file
|
|
uint16(0) == 0x5a4d and
|
|
|
|
pe.imports("wsock32.dll","WSAStartup") and
|
|
pe.imports("wsock32.dll","socket")
|
|
}
|
|
|
|
|
|
|
|
|