Hackerszone
Welcome Guest,
learn to hack easily with tutorials, python, notepad hacks and more!
Join today, fast and free!

Are you new to hacking? Learn the basics in computer configuration, hacking tools, and hacker terminology all found here on this forum!

Join today!!

Join the forum, it's quick and easy

Hackerszone
Welcome Guest,
learn to hack easily with tutorials, python, notepad hacks and more!
Join today, fast and free!

Are you new to hacking? Learn the basics in computer configuration, hacking tools, and hacker terminology all found here on this forum!

Join today!!
Hackerszone
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 

 


Rechercher Advanced Search

HZ Tracker
Hacking Widget Visitor Details
Latest topics
»  How to study to understand and apply RPA?
Source SQL Injection String Encoder Tool EmptyTue Feb 02, 2021 7:12 am by manas41

» SQL injection and Quote escaping
Source SQL Injection String Encoder Tool EmptySun Jun 28, 2015 11:42 am by ADS1

» [TUT] Chmod: Files & Permissions [TUT]
Source SQL Injection String Encoder Tool EmptyThu Jun 04, 2015 12:45 pm by Guest

» Reaver pixiewps
Source SQL Injection String Encoder Tool EmptyThu Jun 04, 2015 12:23 pm by voidfletcher

» How To Crash Someone's Skype in 10 SECONDS
Source SQL Injection String Encoder Tool EmptyThu Jun 04, 2015 12:20 pm by voidfletcher

» Internet Security & IP Security (IPSec)
Source SQL Injection String Encoder Tool EmptyMon May 18, 2015 9:00 pm by voidfletcher

» [Python] Infinite / Definite File Generator
Source SQL Injection String Encoder Tool EmptyMon May 18, 2015 8:58 pm by ADS1

» [C#] String Case-Inversion
Source SQL Injection String Encoder Tool EmptyMon May 18, 2015 8:57 pm by ADS1

» Rekall Memory Forensic Framework
Source SQL Injection String Encoder Tool EmptySat May 16, 2015 8:55 pm by ADS1

Who is online?
In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests

None

[ View the whole list ]


Most users ever online was 38 on Sun Mar 19, 2023 10:07 pm

Source SQL Injection String Encoder Tool

2 posters

Go down

Source SQL Injection String Encoder Tool Empty Source SQL Injection String Encoder Tool

Post by cloud9 Thu May 29, 2014 7:21 pm

Hi Guest!

I've been learning Python for a few days and eventually I release my first tool coded in it. I hope you like it Smile

This tool takes a string as an argument and encode it in a way that will fit in a SQL query.

Code:
Test --> concat(CHAR((20 | 64)),CHAR((68 | 33)),CHAR((82 | 33)),CHAR((80 | 36)),0x00)

The encoding algorithm made by me. Anyway, here it is;

Usage:
Code:
SSE.py [string here]

Screenshot:


[img][You must be registered and logged in to see this link.][/img]


*Drumroll*


CODE:

# -*- coding: cp1254 -*-
import sys

def f(y,z):
"""This function generates a list of numbers.
Those numbers will be equal to 'z' when you 'bitwise or' them with 'y'"""
my_list = range(256)
return filter(lambda x: x | y == z, my_list)

def g(z):
"""This function generates a matrix of f(y,z)"""
my_matrix = list()

for y in range(33,126):

if y != z:
result = f(y,z)

if len(result) > 0:

result.append(y)
my_matrix.append(result)

return my_matrix

def enc(t):
"""Encoding"""
result = "concat("
my_matrix = list()

for c in t:
my_list = g(ord(c))

for i in my_list:
for item in i:
if item != ord(c):
result += "CHAR((" + str(item) + " | " + str(i[-1]) + ")),"
break
break
result += "0x00)"

return result

print '''
Coded by
____ ____ ____ ___ ___ _ _ ____ ____ _ _ ____ ___ ____ _ _
|__/ | | | | | | |__| |___ [__ \_/ [__ | |___ |\/|
| \ |__| |__| | | | | |___ ___] | ___] | |___ | |

||SQL Injection String Encoder||


'''

print enc(sys.argv[1])


cloud9
cloud9
Moderator

Posts : 38
Join date : 2014-04-09
Age : 34

Back to top Go down

Source SQL Injection String Encoder Tool Empty Re: Source SQL Injection String Encoder Tool

Post by rockit Thu May 29, 2014 7:22 pm

Hi, i'm a complete noob at coding. What does this do exactly?
rockit
rockit
Noob
Noob

Posts : 7
Join date : 2014-05-27

Back to top Go down

Source SQL Injection String Encoder Tool Empty Re: Source SQL Injection String Encoder Tool

Post by cloud9 Thu May 29, 2014 7:23 pm

This program manipulates the given string so it wouldn't be recognized. I'll give you more details when I'm on PC (I'm on mobile currently)

Detailed information about encoding: [You must be registered and logged in to see this link.]
cloud9
cloud9
Moderator

Posts : 38
Join date : 2014-04-09
Age : 34

Back to top Go down

Source SQL Injection String Encoder Tool Empty Re: Source SQL Injection String Encoder Tool

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum