Break This SQLi

logo

I made some interesting SQLi challenges based on some real world experiences ๐Ÿ™‚ Give it a shot to test your SQLi skills ๐Ÿ˜‰

http://breakthisqli.rf.gd/

Thank you very much for more than 100 likes !
[tweet https://twitter.com/hasherezade/status/756122086112915456]

Satana Malware Analysis

I havenโ€™t done any malware analysis before and this would be my first post related to malware. Iโ€™m really interested but still quite a lot of things to learn ๐Ÿ™‚ so I thought of starting off somewhere and this is the analysis of the ransomware named โ€œSatanaโ€ by me. Obviously I hope you know who is Satan ๐Ÿ‘ฟ

Samples:

Behavior Analysis

As soon as you run this the main executable will be deleted and a new sample will be created inside the %temp% folder.

View post on imgur.com

The following is the disassembly corresponding to this event.

View post on imgur.com


(more…)

Storing a EXE inside MySQL

It’s possible to store a EXE file inside a MySQL database. You can try this out. For demonstration purposes I’m running MySQL in my localhost. I will be creating a simple database and a table big enough to store the exe file. Since we convert the exe to a hex file the content would be larger than the original exe file. I will be using ‘putty.exe’ as the binary.

[code language=”sql”]
CREATE DATABASE testupload;

USE testupload

CREATE TABLE uploads (
id INT(3) NOT NULL AUTO_INCREMENT,
name VARCHAR(1000000) NOT NULL,
PRIMARY KEY (id)
);
[/code]
(more…)

Unofficial Way of Commenting in MySQL and MariaDB

In MySQL and MariaDB the official methods of commenting would be

The ‘#’ is also known as a “fragment identifier” and is typically used to identify a portion of an HTML document that sits within a fully qualified URL.
When passing ‘#’ inside a URL to the back-end database we can use ‘%23’.
(more…)

Birthday Crackme Part 1

For this yearโ€™s birthday the most awesome gift I received was from hasherazade ๐Ÿ™‚
I am very thankful to her for making my birthday so special ๐Ÿ™‚
This crackme is a bootloader written in 16-bit assembly. This is how this look like.

View post on imgur.com


(more…)

MySQL DoS in the Procedure Analyse Function – CVE-2015-4870

This is a crash I found in MySQL versions up to 5.5.45. In the function procedure analyse() I found this crash while passing a sub query.

Syntax:

So an Example POC would be:


(more…)

Parent Process Detection

By checking the parent process of a given process we can determine if the process is being debugged or not by expecting โ€œexplorer.exeโ€ to be the usual parent process started by the user.
For this technique the following Windows APIs are used.

We also use a pointer to PROCESSENTRY32 structure which will store the information of each process taken from the snapshot.

[code language=”C”]
typedef struct tagPROCESSENTRY32 {
DWORD dwSize;
DWORD cntUsage;
DWORD th32ProcessID;
ULONG_PTR th32DefaultHeapID;
DWORD th32ModuleID;
DWORD cntThreads;
DWORD th32ParentProcessID;
LONG pcPriClassBase;
DWORD dwFlags;
TCHAR szExeFile[MAX_PATH];
} PROCESSENTRY32, *PPROCESSENTRY32;
[/code]

(more…)

IP Obfuscator

A simple tool to convert the IP to different obfuscated forms written in C by me ๐Ÿ™‚ I just wrote this for fun. You may use this when it comes bypassing application filters and much more ๐Ÿ™‚

View post on imgur.com

Example:
IP address of http://google.lk : http://222.165.163.91
Other forms you can write the same IP:

[+] http://3735397211
(more…)

Debugger Detection Using NtGlobalFlag

This is another simple anti-reversing trick used to detect a debugger. As I have shown earlier in my post about the TEB structure and the PEB structure, NtGlobalFlag is located in the PEB Structure at offset PEB+104.

When the process is being debugged the NtGlobalFlag is set to 0x70.


(more…)