This is a small code snippet that can be used to get the ASCII equivalent of your characters in the char() format which can be useful while performing SQL Injection.
//ascii maker for sql injection
//change the string part in the source code as per your need
// this can be used to create char() string for sql injection and this will come along with the video
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str[1024];
int len;
int i;
FILE *fp;
fp = fopen("sqlinj.txt","a+");
if (fp == NULL)
{
printf("Error opening file");
exit(1);
}
else
{
printf("ASCII CHAR() MAKER FOR SQL INJECTION");
printf("\n\t\tBy SAM207");
printf("\nEmail: samar_acharya[at]hotmail.com");
printf("\n\nEnter the string: ");
gets(str);
len = strlen(str);
for (i = 0; i<len;i++)
{
fprintf(fp,"char(%d),",str[i]);
}
fprintf(fp,"\n\n");
fclose(fp);
}
printf("File successfully written");
getch();
}
Character to ASCII IN CHAR() Format
Posted by Cool Samar
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment