Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <conio.h>
- #include <stdlib.h>
- #include <windows.h>
- using namespace std;
- int main()
- {
- string url;
- string RIn;
- string RDG;
- string yon;
- string command;
- int module;
- start:
- cout<<"SparK's HBS"<<endl;
- cout<<""<<endl;
- cout<<""<<endl;
- cout<<""<<endl;
- cout<<"1. Site admin bruteforcer."<<endl;
- cout<<"2. Router ssh bruteforcer."<<endl;
- cout<<"3. Windows vulnerability scanner and exploiter."<<endl;
- cout<<"4. Linux vulnerability scanner and exploiter."<<endl;
- cout<<""<<endl;
- cin>>module;
- if(module<1 || module>4){
- cout<<"Module inexistent.Please choose one from the above"<<endl;
- Sleep(3000);
- system("cls");
- goto start;
- }
- else{
- switch(module){
- case 1:
- cout<<"Please enter the URL:"<<endl;
- cin>>url;
- cout<<"Admin panel finder started."<<endl;
- cout<<"Testing URLs";
- Sleep(3000);
- cout<<".";
- Sleep(3000);
- cout<<".";
- Sleep(3000);
- cout<<"."<<endl;
- cout<<"[+] Admin panel found!"<<endl;
- cout<<"Started Username+Password bruteforcer."<<endl;
- cout<<"Bruteforcing";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<"."<<endl;
- cout<<"[+] Admin Username and Password Found!"<<endl;
- cout<<"Username: etnopharmroot"<<endl;
- Sleep(1000);
- cout<<"Password: rosebudpharm323"<<endl;
- break;
- case 2:
- cout<<"Please enter the target Internet Protocol."<<endl;
- cin>>RIn;
- cout<<"Please enter the Router's Default Gateway."<<endl;
- cin>>RDG;
- cout<<"Starting SSH Bruteforcer";
- Sleep(1000);
- cout<<".";
- Sleep(1000);
- cout<<".";
- Sleep(1000);
- cout<<"."<<endl;
- cout<<"SSH Bruteforcer Succesfully Started!"<<endl;
- Sleep(1000);
- cout<<"Bruteforcing";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<"."<<endl;
- cout<<"[+] Bruteforce Succesful!"<<endl;
- Sleep(1000);
- cout<<"Username: root"<<endl;
- cout<<"Password: cisco"<<endl;
- break;
- case 3:
- cout<<"Please enter machine IP"<<endl;
- cin>>RIn;
- cout<<"Starting Vulnerability Scanner";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<"."<<endl;
- cout<<"Vulnerability scanner started succesfuly!"<<endl;
- cout<<"Scanning for Vulnerabilities";
- Sleep(5000);
- cout<<".";
- Sleep(5000);
- cout<<".";
- Sleep(5000);
- cout<<"."<<endl;
- cout<<"Vulnerability scan finished!"<<endl;
- cout<<"System is vulnerable to the following exploits: "<<endl;
- cout<<" [+] Kernel Stack Memory Disclosure."<<endl;
- Sleep(1000);
- cout<<" [+] CS:CZ - '.BSP' Map File Code Execution."<<endl;
- Sleep(1000);
- cout<<" [+] Remote code execution."<<endl;
- Sleep(1000);
- cout<<"Do you want to attempt to exploit this machine?"<<endl;
- cin>>yon;
- if(yon == "y")
- {
- cout<<"Exploiting";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<"."<<endl;
- cout<<"[+] Machine successfully exploited with remote code execution"<<endl;
- Sleep(1000);
- cout<<"Please enter a link to your code for execution: "<<endl;
- cin>>url;
- cout<<"Executing code";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<"."<<endl;
- cout<<"[+] Code successfully executed!"<<endl;
- Sleep(5000);
- cout<<"Quitting."<<endl;
- Sleep(5000);
- return 0;
- }
- if(yon == "n")
- return 0;
- case 4:
- cout<<"Please enter machine IP"<<endl;
- cin>>RIn;
- cout<<"Starting Vulnerability Scanner";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<"."<<endl;
- cout<<"Vulnerability scanner started succesfuly!"<<endl;
- cout<<"Scanning for Vulnerabilities";
- Sleep(5000);
- cout<<".";
- Sleep(5000);
- cout<<".";
- Sleep(5000);
- cout<<"."<<endl;
- cout<<"Vulnerability scan finished!"<<endl;
- cout<<"System is vulnerable to the following exploits: "<<endl;
- cout<<" [+] Kernel Stack Memory Disclosure."<<endl;
- Sleep(1000);
- cout<<" [+] CVE-2016-5195"<<endl;
- Sleep(1000);
- cout<<"Do you want to attempt to exploit this machine?"<<endl;
- cin>>yon;
- if(yon == "y")
- {
- cout<<"Exploiting";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<".";
- Sleep(10000);
- cout<<"."<<endl;
- cout<<"[+] Machine successfully exploited with CVE-2016-5195"<<endl;
- Sleep(1000);
- cout<<"Establishing remote connection";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<".";
- Sleep(2000);
- cout<<"."<<endl;
- cout<<"[+] Connection successfully established!"<<endl;
- com:
- cin>>command;
- if(command != "quit" || command != "shutdown" || command != "abort")
- goto com;
- if(command == "ping.google.com")
- {
- cout<<"Pinging google.ro [2a00:1450:400d:803::2003] with 32 bytes of data:"<<endl;
- Sleep(15);
- cout<<"Reply from 2a00:1450:400d:803::2003: time=15ms"<<endl;
- Sleep(15);
- cout<<"Reply from 2a00:1450:400d:803::2003: time=15ms"<<endl;
- Sleep(15);
- cout<<"Reply from 2a00:1450:400d:803::2003: time=15ms"<<endl;
- Sleep(14);
- cout<<"Reply from 2a00:1450:400d:803::2003: time=14ms"<<endl;
- cout<<""<<endl;
- cout<<"Ping statistics for 2a00:1450:400d:803::2003:"<<endl;
- cout<<" Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),"<<endl;
- cout<<"Approximate round trip times in milli-seconds:"<<endl;
- cout<<" Minimum = 14ms, Maximum = 15ms, Average = 14ms"<<endl;
- }
- cin>>command;
- if(command == "ls")
- cout<<"www server data databases"<<endl;
- cin>>command;
- if(command == "cd www")
- {
- cin>>command;
- if(command == "ls")
- {
- cout<<"index.php images css fonts favicon.ico"<<endl;
- cin>>command;
- if(command == "rm *")
- cout<<"Are you sure you want to remove all the contents in this folder?"<<endl;
- cin>>yon;
- if(yon == "y")
- {
- cout<<"Succesfully removed all files within this folder!"<<endl;
- cin>>command;
- if(command == "ls")
- cout<<""<<endl;
- cin>>command;
- if(command == "exit")
- return 0;
- }
- }
- }
- }
- if(yon == "n")
- return 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement