发新话题
打印

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

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"    <skylined@edup.tudelft.nl>
  .SP dSSP&#39;  sSSSSSSP   http://spaces.msn.com/members/berendjanwever
_ 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:
   http://www.gnu.org/licenses/gpl.html
  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\"    <skylined@edup.tudelft.nl>\n"
      "  .SP dSSP&#39;  sSSSSSSP   http://spaces.msn.com/members/berendjanwever\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
曾几何时,有人对我说:装B遭雷劈。我说:去你妈的。于是,这个人又对我说:如果再说脏话,上帝会惩罚你的。我说:我操上帝。结论:彪悍的人生不需要上帝。

TOP

发新话题