ANTICHAT — форум по информационной безопасности, OSINT и технологиям
ANTICHAT — русскоязычное сообщество по безопасности, OSINT и программированию.
Форум ранее работал на доменах antichat.ru, antichat.com и antichat.club,
и теперь снова доступен на новом адресе —
forum.antichat.xyz.
Форум восстановлен и продолжает развитие: доступны архивные темы, добавляются новые обсуждения и материалы.
⚠️ Старые аккаунты восстановить невозможно — необходимо зарегистрироваться заново.

05.12.2008, 16:19
|
|
Познавший АНТИЧАТ
Регистрация: 12.03.2008
Сообщений: 1,379
Провел на форуме: 5866479
Репутация:
1809
|
|
фух, не заметил, сижу, уже ни чего ни понимаю..
 работает вроде, спасибо всем!
Последний раз редактировалось mff; 05.12.2008 в 16:48..
|
|
|

05.12.2008, 16:50
|
|
Участник форума
Регистрация: 01.07.2008
Сообщений: 175
Провел на форуме: 881554
Репутация:
66
|
|
Код:
<?php
$list = '94.21.65.1 62 ms 1.65.xxline.net 80
94.21.65.9 62 ms 9.65.xxline.net 80
94.21.65.10 62 ms 10.65.xxline.net 80
94.21.65.18 61 ms 18.65.xxline.net 80
94.21.65.17 76 ms ns1.teleru.net 80
94.21.65.33 69 ms 33.65.xxline.net 80
94.21.66.29 46 ms tps.ruschoc.ru 80
94.21.66.85 46 ms 95.66.xxline.net 80
94.21.66.86 54 ms 96.66.xxline.net 80
94.21.66.140 46 ms mail.imgcis.com 80
94.21.66.153 46 ms 153.66.xxline.net 80
94.21.66.154 46 ms 154.66.xxline.net 80
94.21.66.178 46 ms 178.66.xxline.net 80
94.21.66.182 46 ms 182.66.xxline.net 80
94.21.66.186 46 ms 186.66.xxline.net 80
94.21.66.190 46 ms 190.66.xxline.net 80
94.21.66.213 46 ms 213.66.xxline.net 80
94.21.67.2 46 ms 2.67.xxline.net 80,8080
94.21.67.17 60 ms 17.67.xxline.net 80';
preg_match_all('#(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+\d+.*\s+([,\d]{2,})(?:\s|$)#U', $list, $out);
for($i=0;$i<count($out[0]);$i++) {
if(strpos($out[2][$i],',')!==false) {
$ports=explode(',',$out[2][$i]);
for($i2=0;$i2<count($ports);$i2++)
echo $out[1][$i].':'.$ports[$i2].'<br/>';
}else{ echo $out[1][$i].':'.$out[2][$i].'<br/>';
}
}
?>
как-то так
dei, ты про табуляцую забыл.
Последний раз редактировалось PHPoozy; 05.12.2008 в 16:53..
|
|
|

05.12.2008, 18:58
|
|
Участник форума
Регистрация: 01.07.2008
Сообщений: 175
Провел на форуме: 881554
Репутация:
66
|
|
mff отправил.
|
|
|

05.12.2008, 19:02
|
|
Познавший АНТИЧАТ
Регистрация: 12.03.2008
Сообщений: 1,379
Провел на форуме: 5866479
Репутация:
1809
|
|
Спасибо ребят! Всё работает!
|
|
|

05.12.2008, 21:59
|
|
Участник форума
Регистрация: 03.06.2008
Сообщений: 174
Провел на форуме: 2902191
Репутация:
45
|
|
имеется такой скрипт отправки сообшений:
вопрос какой код и куда именно его вставить , чтобы скрипт отправлял письма с интервалом 3 секунды , а то письма не доходят...
PHP код:
<?php
$testa = $_POST['veio'];
if($testa != "") {
$message = $_POST['html'];
$subject = $_POST['assunto'];
$de = $_POST['de'];
$to = $_POST['emails'];
// le
//$handle = fopen ($emails, "r");
//$to = fread ($handle, filesize ($emails));
//fclose ($handle);
//$handle2 = fopen ($html, "r");
//$message = fread ($handle2, filesize ($html));
//fclose ($handle2);
$message = str_replace("'","\"",$message);
$message = stripslashes($message);
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=Windows-1251\r\n";
$email = explode("\n", $to);
$headers .= "From: ".$de."\r\n";
$i = 0;
$count = 1;
while($email[$i]) {
$ok = "ok";
if(mail($email[$i], $subject, $message, $headers))
echo "* № $count <b>".$email[$i]."</b> <font color=green> Ok..</font><br><hr>";
else
echo "* № $count <b>".$email[$i]."</b> <font color=red>Ok</font><br><hr>";
$i++;
$count++;
}
$count--;
if($ok == "ok")
echo "<script> alert(' ".$count." OK'); </script>";
}
?>
<html>
<head>
<title>Спамер</title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<style>
.normal {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000000;
}
.form {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
background-color: #FFFFFF;
border: 1px dashed #FFFFFF;
}
.style1 {
font-family: Arial, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style2 (
font-family: Arial, Arial, Helvetica, sans-serif;
border: bold;
)
</style>
</head>
<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<form method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="veio" value="sim">
<table width="464" height="489" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000" class="normal">
<tr>
<td width="1" height="16" colspan="0" bgcolor="#999999"> </td>
</tr>
<tr>
<td height="194" valign="top" bgcolor="#999999"><table width="89%" border="0" cellpadding="0" cellspacing="5" class="normal">
<tr>
<td align="right"><span class="style1">От кого</span></td>
<td width="88%"><input name="de" type="text" value="" class="form" id="de" size="84"></td>
</tr>
<tr>
<td align="right"><span class="style1">Тема:</span></td>
<td><input name="assunto" type="text" value="" class="form" id="assunto" size="84"></td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="25" colspan="2"><span class="style1"> Текст</span></td>
</tr>
<tr align="right">
<td height="151" colspan="2" valign="top"> <br> <font color="#B0B0B0" size="1">
<textarea name="html" cols="105" rows="8" wrap="VIRTUAL" class="form" id="html">tut text</textarea>
<span class="from">*</span></font></td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="40" colspan="2"><span class="style1">Список: </span></td>
</tr>
<tr align="right">
<td height="51" colspan="2" valign="top"><br>
<textarea name="emails" cols="105" rows="8" wrap="VIRTUAL" class="form" id="emails"></textarea>
</tr>
<tr>
<td height="22" colspan="2" align="center" valign="top"><input type="submit" name="Submit" value="Разослать"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="15" align="center" bgcolor="#999999"> </td>
</tr>
</table>
</form>
</body>
</html>
|
|
|

05.12.2008, 22:03
|
|
Постоянный
Регистрация: 29.05.2007
Сообщений: 852
Провел на форуме: 4832771
Репутация:
1916
|
|
в конце while поставь sleep(3)
|
|
|

05.12.2008, 22:21
|
|
Участник форума
Регистрация: 03.06.2008
Сообщений: 174
Провел на форуме: 2902191
Репутация:
45
|
|
я полный ноль в php . поставил в конце но не пашет...
как именно должно выглядить это дело?
|
|
|

05.12.2008, 22:25
|
|
Reservists Of Antichat - Level 6
Регистрация: 23.05.2008
Сообщений: 756
Провел на форуме: 9257858
Репутация:
979
|
|
PHP код:
<?php
$testa = $_POST['veio'];
if($testa != "") {
$message = $_POST['html'];
$subject = $_POST['assunto'];
$de = $_POST['de'];
$to = $_POST['emails'];
// le
//$handle = fopen ($emails, "r");
//$to = fread ($handle, filesize ($emails));
//fclose ($handle);
//$handle2 = fopen ($html, "r");
//$message = fread ($handle2, filesize ($html));
//fclose ($handle2);
$message = str_replace("'","\"",$message);
$message = stripslashes($message);
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=Windows-1251\r\n";
$email = explode("\n", $to);
$headers .= "From: ".$de."\r\n";
$i = 0;
$count = 1;
while($email[$i]) {
$ok = "ok";
if(mail($email[$i], $subject, $message, $headers))
echo "* № $count <b>".$email[$i]."</b> <font color=green> Ok..</font><br><hr>";
else
echo "* № $count <b>".$email[$i]."</b> <font color=red>Ok</font><br><hr>";
$i++;
$count++;
sleep(3);
}
$count--;
if($ok == "ok")
echo "<script> alert(' ".$count." OK'); </script>";
}
?>
|
|
|

05.12.2008, 23:28
|
|
Reservists Of Antichat - Level 6
Регистрация: 23.05.2008
Сообщений: 756
Провел на форуме: 9257858
Репутация:
979
|
|
как из файла каждую строку занести в массив ?
|
|
|

05.12.2008, 23:29
|
|
Участник форума
Регистрация: 01.07.2008
Сообщений: 175
Провел на форуме: 881554
Репутация:
66
|
|
$array = file("file.txt");
|
|
|
|
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|