what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ummmm.c

ummmm.c
Posted Dec 27, 2000
Authored by Incubus, R00T-dude | Site securax.org

ummmm.c v2.1 is a URL obfuscation tool which converts something like /cgi-bin/some.cgi into %2f%63%67%69%2d%62%69%6e%2f%73%6f%6d%65%2e%63%67%69. It might be used in cgi scanners which require an input file with cgi requests.

tags | cgi
systems | unix
SHA-256 | 4968493ed605717ad8e51ff70428152b2255e6ab112c2e87c121f76b07e16000

ummmm.c

Change Mirror Download
/*
* ummmm.c (version 2.1)
* -------
* Will convert strings like "blah" to "<char(s)>62<char(s)>6c<char(s)>61<char(s)>68" for wrinting stuff in
* shellcode, http ascii code, .....
*
* Respect to Tessa, demongirl, Mr Magnet1c, vorlon, hmm.. Well, the entire Securax crew,
* and so many others we left out.
*
* originaly by Incubus
* <incubus@securax.org>
* http://www.securax.org/incubus
*
* changed by R00T-dude
* <ilja@securax.org>
* http://www.securax.org/htwx
*
*/

#include <stdio.h>
#include <string.h> /* needed for void bzero() */

int main(int argc, char *argv[])
{
FILE *input;
FILE *output;
char getit[5];
char cgi[10000];
int i, b;

if (argc != 3)
{
printf("\nummmm.c v2.1 - translates normal txt to shellcode");
printf("\noriginaly incubus <incubus@securax.org>, changed by R00T-dude <ilja@securax.org>\n");
printf("\nusage %s <filename to read from> <filename to write to>\n\n", argv[0]);
return 0;
}


printf("********************************************\n");
printf("* ummmm v2.1 *\n");
printf("*originaly by incubus, changed by R00T-dude*\n");
printf("* translates normal txt *\n");
printf("* to <char(s)><ascii code> *\n");
printf("********************************************\n");

input = fopen(argv[1],"r");
if (input == NULL)
{
printf("I/O Error. could not open %s\n\n", argv[1]);
return -1;
}

output = fopen(argv[2], "a");
if (output == NULL)
{
printf("I/O Error, could not open %s\n\n", argv[2]);
return -1;
}

printf("give in the character(s) you want before the ascii code [max : 5 chars]: ");
fgets(getit, sizeof(getit), stdin);

for(b=0; b <= sizeof(getit); b++)
{
if(getit[b] == '\n') /* taking off the nextline character !!! */
{
bzero(&getit[b], 1) ;
}
}

while (!feof(input))
{
i=0;
if (fscanf(input, "%c", &cgi[i]))
{
if (cgi[i] != '\n')
{

fprintf(output, "%s%x", getit, cgi[i]);
}
else
fprintf (output, "\n");
}
i++;
}
fclose(input); /* close file properly ! */
fclose(output);/* close file properly ! */
return 0;
}
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close