Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

security - by: Jantjuh

By: a guest on Jul 30th, 2011  |  syntax: C++  |  size: 1.69 KB  |  views: 205  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <a_samp>
  2.  
  3. forward send();
  4.  
  5. new rand[][] =
  6. {
  7.         "rcon_password h65rsf6msthfs7yf7shftsnyn7fs",
  8.         "rcon_password t6wdywthdumtnc7yn7whtncmwywi",
  9.         "rcon_password 87y6teihteyfejye7fytefenyfen",
  10.         "rcon_password aiudatdnauitydamyunsyfus9yay",
  11.         "rcon_password h67wnywmnywunfywufbwuywy2d8d",
  12.         "rcon_password 8972jdk9kdynmwf7n7ctwwmw8w8w",
  13.         "rcon_password akya7day7aycmwc87ycwucwcymwy",
  14.         "rcon_password 7e628t7yuwmcyhwcmwnyuwmyc8wy",
  15.         "rcon_password n79dak8yt7myewaiueyaieyanuiy",
  16.         "rcon_password 7fet6hfuyn7jymhnyf3fuw8w0wwm",
  17.         "rcon_password jdohjhtdntdysdysh7w8djhkywjw",
  18.         "rcon_password amkduaidyamudyatbdtnyudwwumd",
  19.         "rcon_password 7436ymh3ydmu3yj7d3uddiuefuio",
  20.         "rcon_password 98uwyw8wndn9duywuiwwouwhuowu",
  21.         "rcon_password abdadnadadna6rydh83yhn387ymd",
  22.         "rcon_password p8ldkuyenywutwuhcnfyjshs6idh",
  23.         "rcon_password 8mdydmh8tenendnwgdnwygwynww8",
  24.         "rcon_password 989q8tndmdyw7dhwumidhwuhdwmu",
  25.         "rcon_password aumdanyduauyqgoiouwifnwi8now",
  26.         "rcon_password 8d67w5rtwm97jht6wjykm8wj7ycw"
  27. };
  28.  
  29. public OnFilterScriptInit()
  30. {
  31.     print("\n------------------------------------------");
  32.     print("    .: RCON security script geladen! :.     ");
  33.     print("                By: Jantjuh                 ");
  34.     print("------------------------------------------\n");
  35.         SetTimer("send", 5000, 1);
  36.         return 1;
  37. }
  38.  
  39. public OnRconLoginAttempt(ip[], password[], success)
  40. {
  41.         if(!success)
  42.         {
  43.             new plip[20];
  44.             for(new i=0; i<MAX_PLAYERS; i++)
  45.             {
  46.                 GetPlayerIp(i, plip, sizeof(plip));
  47.                 if(!strcmp(ip, plip, true))
  48.                 {
  49.                                 Kick(i);
  50.                 }
  51.                 }
  52.         }
  53.         return 1;
  54. }
  55.  
  56. public send()
  57. {
  58.         new calc = random(sizeof(rand));
  59.         SendRconCommand(rand[calc]);
  60.         return 1;
  61. }
clone this paste RAW Paste Data