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

27.06.2009, 17:26
|
|
Познающий
Регистрация: 13.08.2008
Сообщений: 54
Провел на форуме: 468148
Репутация:
5
|
|
В одно время заказывал простейший скрипт работы ajax -> php -> mysql -> php -> ajax
кому интересно - выкладываю в архиве
Подробнейшое описание скрипта в ТЗ.doc.
много комментов.
|
|
|

27.06.2009, 19:28
|
|
Познающий
Регистрация: 14.01.2009
Сообщений: 93
Провел на форуме: 244235
Репутация:
39
|
|
Скрипт чтобы достать список всех таблеток главмеда
Код:
use strict;
use warnings;
use LWP::UserAgent;
use Tie::File;
my @pills;
tie @pills, 'Tie::File', 'pills.txt';
my $ua = LWP::UserAgent->new();
for (1..5000) {
my $page = $ua->get('http://www.canadianmedsworld.com/item.php?id='.$_)->decoded_content;
my ($name) = $page =~ m[<div class="item_title">(.+?)</div>];
push @pills, $name if defined $name;
}
|
|
|
Скрипт переноса таблиц с разной структурой в таблицу пользователей воблы |

27.06.2009, 21:01
|
|
Участник форума
Регистрация: 28.01.2008
Сообщений: 247
Провел на форуме: 205760
Репутация:
28
|
|
Скрипт переноса таблиц с разной структурой в таблицу пользователей воблы
Выкладываю готовое решение:
PHP код:
// База - донор
$host_a = "localhost"; // MySQL server
$user_db_a = ""; // MySQL пользователь
$pass_db_a = ""; // MySQL пароль
$dbase_a = ""; // MySQL база данных
$dtable = ""; // Таблица в базе данных
// База - реципиент
$host = "localhost"; // MySQL server
$user_db = ""; // MySQL пользователь
$pass_db = ""; // MySQL пароль
$dbase = ""; // MySQL база данных
$link1 = mysql_connect($host_a, $user_db_a, $pass_db_a);
mysql_select_db($dbase_a, $link1);
$link2 = mysql_connect($host, $user_db, $pass_db);
mysql_select_db($dbase, $link2);
$res1 = mysql_query("SELECT id,
email,
username,
pwd,
regdate,
reg_ip FROM $dtable", $link1);
function fetch_user_salt($length = 3)
{
for ($i = 0; $i < $length; $i++)
{
$salt .= chr(rand(99, 120));
$salt = str_replace('\'','1',$salt);
$salt = str_replace('"','1',$salt);
}
return $salt;
}
if (mysql_num_rows($res1) > 0)
while ($temp = mysql_fetch_assoc($res1)) {
//Обработка данных: генерация пароля и т.п.
$salt = fetch_user_salt();
$pwd = md5( md5( trim($temp[pwd]) ).$salt );
mysql_query("INSERT INTO f_user SET
userid='$temp[id]',
usergroupid='2',
membergroupids='',
displaygroupid='0',
username='$temp[username]',
password='$pwd',
passworddate='2009-06-20',
email='$temp[email]',
styleid='2',
parentemail='',
homepage='',
icq='',
aim='',
yahoo='',
msn='',
skype='',
showvbcode='1',
showbirthday='2',
usertitle='Junior Member',
customtitle='0',
joindate='0',
daysprune='-1',
lastvisit='1245661871',
lastactivity='1245661871',
lastpost='0',
lastpostid='0',
posts='0',
reputation='10',
reputationlevelid='5',
timezoneoffset='0',
pmpopup='0',
avatarid='0',
avatarrevision='0',
profilepicrevision='0',
sigpicrevision='0',
options='3143',
birthday='',
birthday_search='0000-00-00',
maxposts='-1',
startofweek='-1',
ipaddress='$temp[reg_ip]',
referrerid='0',
languageid='0',
emailstamp='0',
threadedmode='0',
autosubscribe='-1',
pmtotal='0',
pmunread='0',
salt='$salt',
ipoints='0',
infractions='0',
warnings='0',
infractiongroupids='',
infractiongroupid='0',
adminoptions='0',
profilevisits='0',
friendcount='0',
friendreqcount='0',
vmunreadcount='0',
vmmoderatedcount='0',
socgroupinvitecount='0',
socgroupreqcount='0',
pcunreadcount='0',
pcmoderatedcount='0',
gmmoderatedcount='0'");
mysql_query("INSERT INTO f_userfield SET
userid='$temp[id]'");
mysql_query("INSERT INTO f_usertextfield SET
userid='$temp[id]'");
}
Огромная благодарность:
Doom123,
Extremal
(Список благодарности дополню)
Последний раз редактировалось serg-php; 28.06.2009 в 01:18..
|
|
|

28.06.2009, 02:35
|
|
Новичок
Регистрация: 18.05.2008
Сообщений: 4
Провел на форуме: 143784
Репутация:
19
|
|
Класс для работы с антикапчей:
PHP код:
<?php
/*
* @name: anti-captcha.php
* @description: Class to communicate AC's API
* @author: NULL_byte
* @contacts: www.null-byte.info
* @version: 1
*/
/*
$AC = new AntiCaptcha;
$AC->Verbose = false;
$AC->APIKey = '';
$AC->Recognize('E:\www\vkontakte\regger\captcha.jpg');
$r = $AC->DecodedCaptcha;
if (!$r) $AC->MakeAbuse();
*/
class AntiCaptcha {
var $APIKey = '';
var $Verbose = true;
var $Numeric = 0;
var $Phrase = 0;
var $Regsense = 0;
var $RTimeout = 2; // Как часто проверять результат
var $MTimeout = 120; // максимальное время расшифровки
var $MinLen = 0;
var $MaxLen = 0;
var $DecodedCaptcha = false;
var $LastCaptchaID = '';
function Recognize($file) {
if (!is_array($file) && !file_exists($file)) {
echo "File $file not found\n";
return false;
}
if (is_array($file)) {
if (!isset($file[0]) || !isset($file[1]) || !isset($file[2]))
echo "Wrong image data!\n";
$filedata = Array($file[0], $file[1], $file[2]);
} else {
$filedata = Array(file_get_contents($file));
}
$q = new HTTPQuery;
$q->ContentType = 'multipart/form-data';
$q->Query = Array(
'method' => 'post',
'key' => $this->APIKey,
'file' => $filedata, // Полный путь к файлу
'phrase' => $this->Phrase,
'regsense' => $this->Regsense,
'numeric' => $this->Numeric,
'min_len' => $this->MinLen,
'max_len' => $this->MaxLen
);
$q->Post('http://ac-service.info/in.php');
if (strpos($q->Result, "ERROR") !== false) {
echo "Server returned error: {$q->ResultClean}\n";
$this->DecodedCaptcha = false;
return false;
} else {
$ex = explode("|", $q->Result);
$this->LastCaptchaID = $ex[1];
$captcha_id = $ex[1];
if (!$this->Verbose) return $captcha_id;
if ($this->Verbose) echo "Decoding captcha";
$waittime = 0;
if ($this->Verbose) echo ".";
sleep($this->RTimeout);
while(true) {
$q->Get("http://ac-service.info/res.php?key={$this->APIKey}&action=get&id=$captcha_id");
$result = $q->ResultClean;
if (strpos($result, 'ERROR') !== false) {
if ($this->Verbose) echo "Server returned error: $result\n";
$this->DecodedCaptcha = false;
return false;
}
if ($result == "CAPCHA_NOT_READY") {
$waittime += $this->RTimeout;
if ($waittime > $this->MTimeout) {
if ($this->Verbose) echo "Timelimit ({$this->MTimeout} secs) hit\n";
break;
}
if ($this->Verbose) echo ".";
sleep($this->RTimeout);
} else {
$ex = explode('|', $result);
$this->DecodedCaptcha = false;
if (trim($ex[0]) == 'OK') $this->DecodedCaptcha = trim($ex[1]);
if ($this->Verbose) echo " ";
return $this->DecodedCaptcha;
}
}
return false;
}
}
function MakeAbuse() {
$url = "http://ac-service.info/res.php?key={$this->APIKey}&action=reportbad&id={$this->LastCaptchaID}";
$responce = file_get_contents($url);
return ($responce == 'OK_REPORT_RECORDED');
}
}
?>
требует для себя вот это:
PHP код:
<?php
/*
* @name: HTTPQuery.php
* @description: Class to work with HTTP protocol
* @author: NULL_byte
* @contacts: www.null-byte.info
* @version: 1.2
*/
class HTTPQuery {
var $URI = 'http://localhost/';
var $Port = '80';
var $Method = 'get';
var $Referer = null;
var $UserAgent = null;
var $Query = null;
var $Cookies = null;
var $Proxy = false; // Proxy to use. Format: Array('proxy_host', 'port') or false;
var $ContentType = null;
var $Boundary = '-----NULL-BYTE----NULL-BYTE----NULL-BYTE';
var $Host = null;
var $Path = null;
var $Silent = false; // If it true, wouldn't print any messages
var $Debug = false; // If it true, would print many messages :)
var $Result = null; // Will contain result with headers
var $ResultClean = null; // Will contain result without headers
var $AddHeaders = Array();
var $Headers = Array();
function ConstructQuery() {
if (is_array($this->Query)) {
if (strtolower($this->ContentType) != 'multipart/form-data') {
$query_string = '';
foreach ($this->Query as $key => $value) {
$query_string .= "$key=$value&";
//$query_string .= $key.'='.urlencode($value);
}
$this->Query = trim($query_string, '&');
} else {
$query_string = '';
foreach ($this->Query as $key => $value) {
$query_string .= "--{$this->Boundary}\r\n";
if (!is_array($value)) {
$query_string .= "Content-Disposition: form-data; name=\"$key\"\r\n\r\n$value\r\n";
} else {
if (!isset($value[1]) && !isset($value[2])) {
$value[1] = $value[0];
$value[0] = file_get_contents($value[1]);
}
if (!isset($value[2])) $value[2] = 'application/octet-stream';
//if (!isset($value[2])) $value[2] = 'undefined/undefined';
$query_string .= "Content-Disposition: form-data; name=\"$key\"; ";
$query_string .= "filename=\"{$value[1]}\"\r\n";
$query_string .= "Content-Type: {$value[2]}\r\n\r\n{$value[0]}\r\n";
}
}
$query_string .= "--{$this->Boundary}--\r\n";
$this->Query = $query_string;
}
}
}
function Filter() {
$this->Method = strtolower($this->Method);
$this->URI = str_replace(Array('\\', 'http://', 'https://'), Array('/', '', ''), $this->URI);
$this->URI = preg_replace('#[/]+#', '/', $this->URI);
if (is_string($this->Proxy)) $this->Proxy = explode(':', $this->Proxy);
$this->ConstructQuery();
}
function SendRequest($url = false) {
if ($url) $this->URI = $url;
$this->Filter();
$url_parts = explode('/', $this->URI);
$this->Host = $url_parts[0];
$this->Path = '';
for ($i = 1; $i < count($url_parts); $i++)
$this->Path .= '/'.$url_parts[$i];
if ($this->Path == '') $this->Path = '/';
// Creating socket
$cur_try = 0; // Current try
$max_tries = 5; // Max allowed tries
while (true) {
if ($this->Proxy) {
$fp = @fsockopen($this->Proxy[0], $this->Proxy[1], $errno, $errstr, 10);
} else {
$fp = @fsockopen($this->Host, $this->Port, $errno, $errstr, 5);
}
if ($fp) break; // If everything is ok, going on without stopping
// Else retrying...
$cur_try++;
if (!$this->Silent) echo "Cannot create socket, will now try again ($cur_try/$max_tries)...\n";
if ($cur_try >= $max_tries) {
if (!$this->Silent) echo "Too many errors, please check your internet connection!\n";
return false;
}
sleep(3);
}
if (($this->Method == 'get') && (substr(0, 1, $this->Query) != '?') && ($this->Query != null))
$this->Query = '?'.$this->Query;
$query_length = strlen($this->Query);
if (!$this->UserAgent)
$this->UserAgent = 'NULL_byte\'s PHP Browser Mozilla/4.0 (compatible; MSIE 3.0; Windows NT 4.0)';
$_cookies = $this->CookiesToString($this->Cookies);
$PostContentType = 'application/x-www-form-urlencoded';
if (strtolower($this->ContentType) == 'multipart/form-data')
$PostContentType = "multipart/form-data; boundary={$this->Boundary}";
$out = Array();
if ($this->Method == 'get') {
$out[] = "GET {$this->Path}{$this->Query} HTTP/1.0";
$out[] = "Accept: */*";
$out[] = "Accept-Language: ru";
$out[] = "User-Agent: {$this->UserAgent}";
if ($this->Cookies) $out[] = "Cookie: $_cookies";
if ($this->Referer) $out[] = "Referer: {$this->Referer}";
$out[] = "Host: {$this->Host}";
} elseif ($this->Method == 'post') {
$out[] = "POST {$this->Path} HTTP/1.0";
$out[] = "Accept: */*";
$out[] = "Accept-Language: ru";
$out[] = "User-Agent: {$this->UserAgent}";
if ($this->Cookies) $out[] = "Cookie: $_cookies";
if ($this->Referer) $out[] = "Referer: {$this->Referer}";
$out[] = "Host: {$this->Host}";
if (!isset($this->AddHeaders['Content-Type']))
$out[] = "Content-Type: $PostContentType";
$out[] = "Content-Length: $query_length";
} else {
$out[] = strtoupper($this->Method)." {$this->Path}{$this->Query} HTTP/1.0";
$out[] = "Accept: */*";
$out[] = "Accept-Language: ru";
$out[] = "User-Agent: {$this->UserAgent}";
if ($this->Cookies) $out[] = "Cookie: $_cookies";
if ($this->Referer) $out[] = "Referer: {$this->Referer}";
$out[] = "Host: {$this->Host}:{$this->Port}";
}
foreach ($this->AddHeaders as $key => $value)
$out[] = "$key: $value";
$out[] = "Connection: Close";
//$out[] = "Connection: Keep-Alive";
$out = implode("\r\n", $out);
$out = str_replace("\n", "\r\n", $out);
$out = preg_replace("#[\n]+#", "\n", $out);
$out = preg_replace("#[\r]+#", "\r", $out);
$out .= "\r\n\r\n";
if ($this->Method == 'post') $out .= $this->Query;
fwrite($fp, $out);
$this->Result = '';
while (!feof($fp)) {
$line = fgets($fp, 1024);
$this->Result .= $line.'';
}
fclose($fp);
if ($this->Debug) {
echo "----->\n$out\n\n";
echo "<-----\n{$this->Result}\n\n";
}
$this->Referer = $url;
$this->Query = NULL;
$this->ContentType = NULL;
$this->AddHeaders = Array();
$this->ParseHeaders();
$this->ResultClean = ltrim(substr($this->Result, strpos($this->Result, "\r\n\r\n")));
return $this->Result;
}
function Get($url = false) {
$this->Method = 'get';
return $this->SendRequest($url);
}
function Post($url = false) {
$this->Method = 'post';
return $this->SendRequest($url);
}
function ParseHeaders() {
if (!$this->Result) return false;
$server_response = explode("\r\n\r\n", $this->Result);
$server_response = $server_response[0];
$server_response = str_replace("\r", '', $server_response);
$server_response = explode("\n", $server_response);
$result = Array();
foreach($server_response as $mixed_headers) {
if (!(strpos($mixed_headers, ': ') === false)) {
$header = explode(': ', trim($mixed_headers));
$result[$header[0]] = isset($header[1]) ? $header[1] : NULL;
}
}
$this->Headers = $result;
return $result;
}
function CookiesToString($cookie = false) {
if (!$cookie) $cookie = $this->Cookies;
if (!is_array($cookie)) return $cookie;
$cookie_string = '';
foreach ($cookie as $key => $value)
$cookie_string .= " $key=$value;";
$cookie = trim($cookie_string, '; ');
return $cookie;
}
function CookiesToArray($cookie = false) {
if (!$cookie) $cookie = $this->Cookies;
if (is_array($cookie)) return $cookie;
$cookie = explode('; ', $cookie);
$cookie_array = Array();
for ($i = 0; $i < count($cookie); $i++) {
$c = explode('=', $cookie[$i]);
$cookie_array[$c[0]] = $c[1];
}
return $cookie_array;
}
function GetCookies($as_string = false) {
if (!$this->Result) return false;
$data = explode("\r\n\r\n", $this->Result);
$data = $data[0];
$data = str_replace("\r", '', $data);
$data = explode("\n", $data);
$raw_cookies = Array();
foreach ($data as $d) {
$d = explode(' ', $d);
if (strtolower($d[0]) == 'set-cookie:') {
$raw_cookies[] = $d[1];
}
}
$cookies = Array();
foreach ($raw_cookies as $cookie) {
$cookie = explode('=', $cookie);
$cookies[$cookie[0]] = trim($cookie[1], '; ');
}
if ($as_string)
$cookies = $this->CookiesToString($cookies);
return $cookies;
}
}
?>
Последний раз редактировалось NULL_byte; 28.06.2009 в 02:39..
|
|
|

28.06.2009, 19:30
|
|
Познающий
Регистрация: 14.01.2009
Сообщений: 93
Провел на форуме: 244235
Репутация:
39
|
|
скрипт для объединения тхт файлов в папке, кидаем в папку и запускаем, пишет в файл out.txt
Код:
open OUT, '>out.txt';
my @files = filesindir('.');
for my $file (@files) {
next unless (($file =~ /\.txt$/) && ($file ne 'out.txt'));
open FILE, '<'.$file;
while (my $line = <FILE>) {
print OUT $line;
}
close FILE;
print OUT "\n";
}
close OUT;
sub filesindir {
my $dir = shift;
my $limit = shift;
opendir(DIR, $dir);
my @dots = grep { $_ !~ /^\./ && -f "$dir/$_" } readdir(DIR);
closedir DIR;
if ($limit) {
@dots = shuffle(@dots);
@dots = @dots[1..$limit];
}
return wantarray?@dots:\@dots;
}
|
|
|

03.07.2009, 15:33
|
|
Познающий
Регистрация: 14.01.2009
Сообщений: 93
Провел на форуме: 244235
Репутация:
39
|
|
Многопоточный парсер беков из яхи
Код:
puts Time.now
def urlescape(string)
string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
'%' + $1.unpack('H2' * $1.size).join('%').upcase
end.tr(' ', '+')
end
require 'net/http'
numthreads = 10
input = File.new('input.txt', 'r')
output = File.new('output.txt', 'w')
threads = Array.new
1.upto(numthreads) do |w|
threads << Thread.new(w) do |w|
while line = input.gets
next if line =~ /^#/
yurl = "/export?p=#{urlescape(line.chomp)}&bwm=i&fr=sfp"
line = Net::HTTP.get('siteexplorer.search.yahoo.com', yurl)
line.scan(/\t(.+?)\t/) do |url|
output.write(url[0]+"\n") unless url[0].index('http').nil?
end
end
end
end
threads.each do |t| t.join end
input.close
output.close
puts Time.now
|
|
|

04.07.2009, 01:27
|
|
Постоянный
Регистрация: 20.12.2007
Сообщений: 334
Провел на форуме: 1934122
Репутация:
118
|
|
Брут пасса к сертификатам. Маленький пример)
PHP код:
<?php
if(!extension_loaded("openssl")) exit;
$passlist = array('12345', 'qwerty', '123321', '0123', 'qazwdc');
if(!$file = 'c:/cert.p12') exit; // Path certif...
$fd = fopen($file, 'r');
$p12buf = fread($fd, filesize($file));
fclose($fd);
echo "[+] Brute certificate (Pkcs12) password!\n";
foreach($passlist as $pass) //for($i = 0; $i < pow(10,8); $i++)
if (openssl_pkcs12_read($p12buf, $p12cert, $pass) ) die(" - Pass: ".$pass." Good! \n");
?>
|
|
|

06.07.2009, 14:38
|
|
Постоянный
Регистрация: 12.06.2008
Сообщений: 654
Провел на форуме: 4512757
Репутация:
973
|
|
[Python] RU GEO IP Checker
скрипт для проверки русских IP адресов через сайт http://ipgeobase.ru/ , насколько я понял то они там мутят это дело через гугль, ограничение - 4к IP за один раз, прокся - для тех кто сидит в инете за проксей, остальным оставить пустым
Версия Python - 2.6.2, требует Tkinter (на windows установлен по умолчанию)
"Так как нужно" переделывать лень, сам не люблю глобалы но лень их переделывать , тем более что тут пох)
Скриншот :
Код:
#!usr/bin/env/python
#-*encoding:utf-8-*-
#RU GEO IP Checker
#(c) login999
import re
import urllib2
import tkFileDialog
import tkMessageBox
from Tkinter import *
from xml.dom.minidom import Document
import xml.etree.cElementTree
def Gui():
request_xml = None
answer_xml = None
def Load_Button():
global request_xml
try:
with open(tkFileDialog.askopenfilename()) as source_ips:
ips_list = re.findall(r"(\d+\.\d+\.\d+\.\d+)", source_ips.read())
request_xml = create_xml(ips_list)
GetButton["state"] = "normal"
ProxyEntry["state"] = "normal"
LoadButton["state"] = "disabled"
except Exception, e:
tkMessageBox.showerror(u"Ошибка", e)
def Save_Button():
global answer_xml
try:
with open(tkFileDialog.asksaveasfilename(), "w") as out:
answer = parse_answer(answer_xml)
out.write(answer)
LoadButton["state"] = "normal"
SaveButton["state"] = "disabled"
except Exception, e:
tkMessageBox.showerror(u"Ошибка", e)
def Get_Button():
global answer_xml
global request_xml
proxy = ProxyEntry.get()
if proxy:
proxy_handler = urllib2.ProxyHandler( { "http": "http://"+proxy+"/" } )
opener = urllib2.build_opener(proxy_handler)
urllib2.install_opener(opener)
else:
pass
request = urllib2.Request("http://194.85.91.253:8090/geo/geo.html", request_xml)
try:
answer_xml = urllib2.urlopen(request).read()
GetButton["state"] = "disabled"
ProxyEntry["state"] = "disabled"
SaveButton["state"] = "normal"
except Exception, e:
tkMessageBox.showerror(u"Ошибка", e)
MainWindow = Tk()
MainWindow["bd"] = 5
MainWindow.title(u"RU GEO IP Checker")
MainWindow.resizable(width=False, height=False)
ProxyFrame = Frame(MainWindow)
ProxyFrame.grid(row=0, column=0, columnspan=2)
ProxyLabel = Label(ProxyFrame, text=u"Прокси:", anchor="w")
ProxyLabel.grid(row=0, column=0)
ProxyEntry = Entry(ProxyFrame, state="disabled")
ProxyEntry.grid(row=0, column=1)
LoadButton = Button(MainWindow, text=u"Ip адреса", font="system 10", width=12, command=Load_Button)
LoadButton.grid(row=1, column=0, sticky="e")
SaveButton = Button(MainWindow, text=u"Сохранить", font="system 10", width=12, height=1, state="disabled", command=Save_Button)
SaveButton.grid(row=2, column=0, sticky="e")
GetButton = Button(MainWindow, text=u"Получить", font="system 10", width=12, state="disabled", command=Get_Button)
GetButton.grid(row=1, column=1, rowspan=2, sticky="wns")
MainWindow.mainloop()
def parse_answer(answer_xml):
full_answer = ""
answer = xml.etree.cElementTree.fromstring(answer_xml)
answer_ips = answer.getchildren()
for ip in answer_ips:
ip_answer = ""
ip_adress = ip.get("value")
ip_answer = "{0}|".format(ip_adress)
ip_info = ip.getchildren()
for element in ip_info:
ip_answer = "{0}{1}|".format(ip_answer, element.text.encode("cp1251"))
full_answer = "{0}{1}\n".format(full_answer, ip_answer)
return full_answer
def create_xml(ips_list):
doc = Document()
ipquery = doc.createElement("ipquery")
doc.appendChild(ipquery)
fields = doc.createElement("fields")
all = doc.createElement("all")
fields.appendChild(all)
inetnum = doc.createElement("inetnum")
fields.appendChild(inetnum)
inet_descr = doc.createElement("inet-descr")
fields.appendChild(inet_descr)
inet_status = doc.createElement("inet-status")
fields.appendChild(inet_status)
city = doc.createElement("city")
fields.appendChild(city)
region = doc.createElement("region")
fields.appendChild(region)
district = doc.createElement("district")
fields.appendChild(district)
lat = doc.createElement("lat")
fields.appendChild(lat)
lng = doc.createElement("lng")
fields.appendChild(lng)
ipquery.appendChild(fields)
ip_list = doc.createElement("ip-list")
for ip in ips_list:
ip_element = doc.createElement("ip")
ip_value = doc.createTextNode(ip)
ip_element.appendChild(ip_value)
ip_list.appendChild(ip_element)
ipquery.appendChild(ip_list)
return doc.toxml()
if __name__ == "__main__":
Gui()
|
|
|

07.07.2009, 20:16
|
|
Banned
Регистрация: 06.07.2009
Сообщений: 74
Провел на форуме: 437317
Репутация:
209
|
|
Чекер CC на перле, может и пригодится =)
Код:
#!usr/bin/perl
system('cls');
system ('color A');
print " \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \n";
print "--###########################--\n";
print "--#### C0d3d by YOSYA ####--\n";
print "--##### 44I-44I-448 ######--\n";
print "--###########################--\n";
print " ///////////////////////////--\n";
print "\n";
print "\n";
use LWP::UserAgent;
print "Enter CC number \n> ";
$cc=<stdin>;
$url="http://credit-card-information.elliottback.com/?number=".$cc;
$client = LWP::UserAgent->new( ) or die;
$answer = $client->get($url);
@info=$answer->content =~ /<b>(.*)<\/b>/g;
print join "\n", @info;
print "\n";
print "\n";
print "\n";
print "Udachi )))\n";
|
|
|

08.07.2009, 21:34
|
|
Постоянный
Регистрация: 12.12.2006
Сообщений: 906
Провел на форуме: 4205500
Репутация:
930
|
|
Понадобилось тут привести знакомому лист прокси после брута IPD в нормальный вид, а програмку он, как водится, готовую не нашел  Вот набросал простенький код, может кому пригодится..
Код:
#!/usr/bin/env python3
import sys
filename = sys.argv[1]
with open(filename) as fin:
with open("out.txt", "a") as fout:
for line in fin:
i = 0
i = line.find(";", i)
if i > -1:
fout.write(line[0:i] + '\n')
else:
fout.write(line + '\n')
[+] Откопал у себя ) Делает из файлов с именами и зонами домены. Делал, когда писал чекер доменов.
Код:
#!/usr/bin/env python3
import sys
def get_from_file(filename):
temp = []
for line in open(filename):
temp.append(line.strip())
return temp
fnames = sys.argv[1]
fzones = sys.argv[2]
fileout = open("out.txt", "w")
for name in get_from_file(fnames):
for zone in get_from_file(fzones):
fileout.write("{0}.{1}\n".format(name,zone))
Последний раз редактировалось Fata1ex; 23.07.2009 в 03:01..
|
|
|
|
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|