Saturday, December 26, 2015

turn your wordlist into a webpage.

Turn your wordlist into a webpage. I have a better example I will post later and some scripts for making this all happen. I even wrote a program for to create the site maps.

#include <string>
#include <sstream>
#include <iostream>
#include <cctype>
#include <fstream>
#include "md5.h"
#include "sha1.h"
#include "sha224.h"
#include "sha256.h"
#include "sha384.h"
#include "sha512.h"
#include <algorithm>

using namespace std;


int main (int argc, char* argv[3])
{


{ofstream myfile;
myfile.open (argv[2]);

{ string line; ifstream infile (argv[1]);
myfile << "<html>" << endl;
myfile << "<head>" << endl;

if (infile.is_open())

{ while ( getline (infile,line) )

myfile << "<title>" << line << "</title>" << endl;
myfile << "<meta name='description'" << "content='" << line << endl;
myfile << "<meta name='keywords'" << "content='" << line << "," << md5(line)<< "," << sha1(line) << "," << sha224(line) << "," << sha256(line) << "," << sha384(line) << "," << sha512(line) << "'/>" << endl;
}
infile.close();
myfile << "</head><body><table><p>" << endl;
{ string line; ifstream infile (argv[1]);

if (infile.is_open())


{ while ( getline (infile,line) )
myfile << "<tr><td>" << line << "</td></tr>" << "<tr><td>" << md5(line) << "</td></tr>" << "<tr><td><b>" << sha1(line) << "</b></tr></td>" << "<tr><td><b>" << sha224(line) << "</b></tr></td>" << "<tr><td><b>" << sha256(line) << "</b></tr></td>" << "<tr><td><b>" << sha384(line) << "</b></tr></td>" << "<tr><td><b>" << sha512(line) << "</b></tr></td>" << endl;
infile.close();
myfile << "</table>" << endl;
myfile << "</p>" << "</body>" << endl;
myfile.close();
} else cout << "Unable to open file" << endl;

}
}
}
return 0; }


No comments:

Post a Comment