Advertisement
Guest User

Untitled

a guest
Jun 21st, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #ifndef __SITE_DATA_H
  5. #define __SITE_DATA_H
  6.  
  7. #include <string>
  8. #include <stdlib.h>
  9. #include <iostream>
  10. #include <curl/curl.h>
  11. using namespace std;
  12.  
  13. #define NUM_MD5_SITES 3
  14. #define NUM_SHA1_SITES 4
  15. //#define NUM_MYSQL_SITES 0
  16. //#define NUM_DES_SITES 0
  17.  
  18. extern bool VERBOSE;
  19. extern bool RANDOMIZE;
  20.  
  21. /* Class to hold all of the websites, post data, etc.. */
  22.  
  23. class site_data {
  24.    
  25.     private:
  26.    
  27.         string *sites;
  28.         string *post_data;
  29.         string *is_found;
  30.         string *end_extractor;
  31.         int *offset;
  32.         int size;
  33.        
  34.     public:
  35.    
  36.         site_data(int, int, string);
  37.         const char* get_site(int x) { return(sites[x].c_str()); }
  38.         const char* get_post_data(int x) { return(post_data[x].c_str()); }
  39.         string get_is_found(int x) { return(is_found[x]); }
  40.         string get_end_extractor(int x) { return(end_extractor[x]); }
  41.         int get_offset(int x) { return(offset[x]); }
  42.         int get_size() { return(size); }
  43.         void randomize();
  44.         ~site_data();
  45.        
  46. };
  47.  
  48. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement