From f277cffb5c1566d60e458765d6680a60aec0a2c7 Mon Sep 17 00:00:00 2001 From: Piotr Date: Fri, 17 May 2013 15:50:10 +0200 Subject: [PATCH] removed cd --- Fuzzer.cpp | 87 ------------------ Fuzzer.h | 46 ---------- portspoof2.tmproj | 218 ---------------------------------------------- 3 files changed, 351 deletions(-) delete mode 100644 Fuzzer.cpp delete mode 100644 Fuzzer.h delete mode 100644 portspoof2.tmproj diff --git a/Fuzzer.cpp b/Fuzzer.cpp deleted file mode 100644 index 02ae15f..0000000 --- a/Fuzzer.cpp +++ /dev/null @@ -1,87 +0,0 @@ -#include "Fuzzer.h" - -Fuzzer::Fuzzer() -{ - - - return; -} - -Fuzzer::Fuzzer(std::string nmapfuzzsignatures_file,std::string nmapfuzzpayload_file) -{ - - this->nmapfuzzsignatures_file = nmapfuzzsignatures_file ; - this->nmapfuzzpayload_file = nmapfuzzpayload_file ; - counter=0; - return; -} - -bool Fuzzer::processSignatureFile() -{ - - - - - - return 0; - -} - -bool Fuzzer::PrepareFuzzer() -{ - - this->fp_payloads=fopen(this->nmapfuzzpayload_file.c_str(), "r"); - char buf_file[BUFSIZE]; - - if ( this->fp_payloads == NULL) { - fprintf(stdout,"Error opening payload file: %s \n",this->nmapfuzzpayload_file.c_str()); - return 1; - } - - FILE *fp = fopen(this->nmapfuzzsignatures_file.c_str(), "r"); - if (fp == NULL) { - fprintf(stdout,"Error opening signature file: %s \n",this->nmapfuzzsignatures_file.c_str()); - return 1; - } - - while (fgets(buf_file, BUFSIZE, fp)) - nmapfuzzsignatures.push_back(std::string(buf_file)); - fclose(fp); - -} - - -std::vector Fuzzer::GetFUZZ() -{ - - - char buf_file[BUFSIZE]; - std::string input_line,input_wrapped; - std::vector result_vector; - - - fgets(buf_file, BUFSIZE, this->fp_payloads); - - input_line=std::string(buf_file); - input_wrapped=Utils::wrapNMAP(this->nmapfuzzsignatures[this->counter%this->nmapfuzzsignatures.size()],input_line); - - this->counter++; - - for(int i=0; i -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "Utils.h" -#include "Configuration.h" - -using namespace std; - -typedef vector < string > Nmap_Fuzz_Vector; - -class Fuzzer{ - private: - - std::string nmapfuzzsignatures_file; - std::string nmapfuzzpayload_file; - Nmap_Fuzz_Vector nmapfuzzsignatures; - FILE *fp_payloads; - int counter; - - public: - Fuzzer(); - Fuzzer(std::string,std::string); - bool processSignatureFile(); - bool Prepare(); - std::vector GetFUZZ(); - -}; - - -#endif diff --git a/portspoof2.tmproj b/portspoof2.tmproj deleted file mode 100644 index 70dcfe9..0000000 --- a/portspoof2.tmproj +++ /dev/null @@ -1,218 +0,0 @@ - - - - - currentDocument - src/portspoof.c - documents - - - expanded - - name - portspoof2 - regexFolderFilter - !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ - sourceDirectory - - - - fileHierarchyDrawerWidth - 200 - metaData - - ChangeLog - - caret - - column - 5 - line - 14 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - FAQ - - caret - - column - 24 - line - 1 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - Makefile.am - - caret - - column - 22 - line - 6 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - Makefile.in - - caret - - column - 0 - line - 0 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - NEWS - - caret - - column - 0 - line - 1 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - README - - caret - - column - 7 - line - 18 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - TODO - - caret - - column - 0 - line - 8 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - configure.in - - caret - - column - 23 - line - 7 - - firstVisibleColumn - 0 - firstVisibleLine - 7 - - src/config_file.c - - caret - - column - 0 - line - 95 - - firstVisibleColumn - 0 - firstVisibleLine - 88 - - src/config_file.h - - caret - - column - 18 - line - 0 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - src/log.c - - caret - - column - 2 - line - 43 - - firstVisibleColumn - 0 - firstVisibleLine - 0 - - src/portspoof.c - - caret - - column - 1 - line - 227 - - firstVisibleColumn - 0 - firstVisibleLine - 220 - - src/signatures - - caret - - column - 54 - line - 1477 - - firstVisibleColumn - 0 - firstVisibleLine - 1483 - - - openDocuments - - src/log.c - src/signatures - src/portspoof.c - - showFileHierarchyDrawer - - windowFrame - {{203, 274}, {1186, 878}} - -