邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-12-26 14:24

Multi-Format Shellcode Encoding Tool - Beta v2.0 (w32)

文章作者:SkyLined

[code]/*
______________________________________________________________________________

    ,sSSSis  ,sSSSs,  Beta v2.0 (w32).
   iS"  dP  dY"  ,SP  Encodes binary data to/from a variety of formats.
  .SP dSS"    ,sS"   Copyright (C) 2003-2005 by Berend-Jan Wever
  dS&#39;  Sb   ,sY"    <[email]skylined@edup.tudelft.nl[/email]>
  .SP dSSP&#39;  sSSSSSSP   [url]http://spaces.msn.com/members/berendjanwever[/url]
_ iS:_________________________________________________________________________

  This program is free software; you can redistribute it and/or modify it under
  the terms of the GNU General Public License version 2, 1991 as published by
  the Free Software Foundation.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
  details.

  A copy of the GNU General Public License can be found at:
   [url]http://www.gnu.org/licenses/gpl.html[/url]
  or you can write to:
   Free Software Foundation, Inc.
   59 Temple Place - Suite 330
   Boston, MA  02111-1307
   USA.
*/

#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <windows.h>

#define MAX_BUFFER_SIZE 0x1000
#define DEFAULT_PAD_BYTE 0x90
#define MAX_MARKER_SIZE 0x10
#define bool char
#define true 1
#define false 0

char* hex = "0123456789abcdef";

void version(void) {
   printf(
      "______________________________________________________________________________\n"
      "\n"
      "    ,sSSSis  ,sSSSs,  Beta v2.0.\n"
      "   iS\"  dP  dY\"  ,SP  Encodes binary data to/from a variety of formats.\n"
      "  .SP dSS\"    ,sS\"   Copyright (C) 2003-2005 by Berend-Jan Wever\n"
      "  dS&#39;  Sb   ,sY\"    <[email]skylined@edup.tudelft.nl[/email]>\n"
      "  .SP dSSP&#39;  sSSSSSSP   [url]http://spaces.msn.com/members/berendjanwever[/url]\n"
      "_ iS:_________________________________________________________________________\n"
      "\n"
   );
  return;
}
void help(void) {
   printf(
      "Beta was developed to convert raw binary shellcode into text that can be\n"
      "used in exploit source-code. It can convert raw binary data to a large\n"
      "number of encodings.\n"
    "\n"
      "  Usage: BETA [options] [input file name]\n"
    "\n"
      "  input file name        Read input from the given file. By default BETA\n"
      "                   reads input from stdin.\n"
    "\n"
      "General options:\n"
      "  --help              Display this help and exit\n"
      "  --version            Output version information and exit\n"
      "  --verbose            Displays additional information.\n"
      "  --pause             Wait for keypress before exiting.\n"
    "\n"
    "Encoding options: (default = AA BB CC ...)\n"
      "  \\x                \\xAA\\xBB\\xCC ...\n"
      "  0x                0xAA 0xBB 0xCC ...\n"
      "  %%                 %%AA%%BB%%CC...\n"
      "  #                 o

页: [1]
© 1999-2008 EvilOctal Security Team