I'm sure many of you have doubts on the integrity of these non-distributing file scanners. I've come up with a solution to put the doubts to rest or maybe stir the pot of shit some more (or is it curry... Fucking Indian food)!
I'm sure the owners of the scanners below won't mind that I've submit a custom program that's not actually malware.
I'm sure the owners of the scanners below won't mind that I've submit a custom program that's not actually malware.
Code
#include <winsock2.h>
#include <windows.h>
#include <iostream>
#pragma comment(lib,"ws2_32.lib")
int main (){
WSADATA wsaData;
WSAStartup(MAKEWORD(2,2), &wsaData);
SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
SOCKADDR_IN SockAddr;
SockAddr.sin_port=htons(80);
SockAddr.sin_family=AF_INET;
SockAddr.sin_addr.s_addr = inet_addr("MY SERVER IP");
connect(Socket,(SOCKADDR*)(&SockAddr),sizeof(SockAddr));
send(Socket,"GET /UNIQUE FILE NAME.exe HTTP/1.1\r\nHost: MY SERVER IP\r\nCache-Control: no-cache\r\nUser-Agent: Big Bad Malware Downloader\r\nConnection: close\r\n\r\n", strlen("GET /UNIQUE FILE NAME.exe HTTP/1.1\r\nHost: MY SERVER IP\r\nUser-Agent: Big Bad Malware Downloader\r\nCache-Control: no-cache\r\nConnection: close\r\n\r\n"),0);
closesocket(Socket);
WSACleanup();
return 0;
}This simple program uses the Winsock API to initiate a connection with my own server and an HTTP GET request to attempt to grab an arbitrary file from it. Apache access logs will log the attempt with IP address information which will allow me to identify the scanner that's distributing or, otherwise, executing my program.
These files have not been encrypted or protected nor have they been uploaded to any hosting service that could potentially distribute the samples and taint the results.
![[Image: 78f27f0d5a.png]](https://puu.sh/bkSTe/78f27f0d5a.png)
![[Image: 9177915b62.png]](https://puu.sh/bkRuJ/9177915b62.png)
![[Image: 289666bea4.png]](https://puu.sh/bkRsA/289666bea4.png)
More scanners coming soon. Feel free to post links to popular scanners you'd like tested and I'd be happy to submit a sample to them.
These files have not been encrypted or protected nor have they been uploaded to any hosting service that could potentially distribute the samples and taint the results.
![[Image: 78f27f0d5a.png]](https://puu.sh/bkSTe/78f27f0d5a.png)
![[Image: 9177915b62.png]](https://puu.sh/bkRuJ/9177915b62.png)
![[Image: 289666bea4.png]](https://puu.sh/bkRsA/289666bea4.png)
More scanners coming soon. Feel free to post links to popular scanners you'd like tested and I'd be happy to submit a sample to them.
