- New Hack Tools
- Hack Apps
- Nsa Hack Tools
- Hacker Tools List
- Hacking Tools Mac
- How To Make Hacking Tools
- Hack Tools Pc
- Hack Tools
- Usb Pentest Tools
- Pentest Tools Alternative
- Android Hack Tools Github
- Hacking Tools Windows
- Hacking Tools 2019
- Hack App
- Pentest Tools For Mac
- Android Hack Tools Github
- Pentest Reporting Tools
- Pentest Tools Download
- Pentest Tools Tcp Port Scanner
- Hack Tools Mac
- Hacker Tools List
- Pentest Reporting Tools
- Bluetooth Hacking Tools Kali
- Hacking Tools For Kali Linux
- Hack Tools
- Hacker Tools
- Hacker Tools Software
- Best Hacking Tools 2019
- What Are Hacking Tools
- Hacker Tools List
- Hacking Tools For Pc
- Pentest Tools Linux
- Hack Tools Download
- Hacker Tools 2019
- Hacking Tools Free Download
- Pentest Tools Alternative
- Hacking Apps
- Hack Tools Online
- Pentest Tools For Ubuntu
- Hak5 Tools
- Pentest Recon Tools
- Tools 4 Hack
- Ethical Hacker Tools
- Hak5 Tools
- Hacker Search Tools
- Pentest Tools Online
- Hacking Tools Windows
- New Hacker Tools
- New Hack Tools
- Hacker Tools Windows
- Pentest Tools For Android
- Hak5 Tools
- Hackers Toolbox
- Hacking Tools For Games
- Hacking Tools Mac
- Pentest Tools For Ubuntu
- World No 1 Hacker Software
- Tools Used For Hacking
- Tools For Hacker
- Hacking Tools For Kali Linux
- Hacker Tools For Pc
- Hacks And Tools
- Pentest Tools Github
- Hack Tools For Windows
- What Are Hacking Tools
- Hack Tools For Mac
- Hacker Tools Free
- Nsa Hacker Tools
- World No 1 Hacker Software
- Hacker Security Tools
- Bluetooth Hacking Tools Kali
- Hack And Tools
- Pentest Tools Android
- Hack And Tools
- Growth Hacker Tools
- Physical Pentest Tools
- Hacking Tools For Pc
- Pentest Box Tools Download
- Hacker Tools 2020
- Pentest Tools Website Vulnerability
- Hack Tools Mac
- Hacker Techniques Tools And Incident Handling
- Hacking App
- Best Hacking Tools 2020
- Hacker Tools Free Download
- Pentest Tools Tcp Port Scanner
- Hacker
- Easy Hack Tools
- Hacker Tools For Ios
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Tcp Port Scanner
- Hacking Tools Windows
- Hacker Tools Free Download
- Hacking Tools Kit
- Hack Tools Pc
- Hacking Tools For Windows 7
- Github Hacking Tools
- Pentest Box Tools Download
- Hacking Tools And Software
- Hack Tools Online
- Black Hat Hacker Tools
- Pentest Tools Apk
- Pentest Tools Apk
- Physical Pentest Tools
- Hacker Tools
- Growth Hacker Tools
- Hacker Tools Apk
- Hack Tools Online
- Tools 4 Hack
- Hacking Tools Pc
- Pentest Tools Github
- Hacker Search Tools
- Easy Hack Tools
- How To Make Hacking Tools
viernes, 26 de enero de 2024
Hackerhubb.blogspot.com
Hackerhubb.blogspot.comMore info
jueves, 25 de enero de 2024
Reversing Pascal String Object
There are many goodware and malware developed in pascal, and we will see that the binary generated by the pascal compilers is fascinating, not only because the small and clean generated binaries, or the clarity of the pascal code, but also the good performance. In Linux we have Lazarus which is a good free IDE like Delphi and Kylix the free pascal IDE for windows.
The program:
program strtest;
var
cstr: array[0..10] of char;
s, s2: ShortString;
begin
cstr := 'hello world';
s := cstr;
s2 := 'test';
WriteLn(cstr + ' ' + s + ' ' + s2);
end.
We are going to compile it with freepascal and lazarus, and just the binary size differs a lot:
lazarus 242,176 btytes 845 functions
freepascal 32,256 bytes 233 functions
turbopascal 2,928 bytes 80 functions (wow)
And surprisingly turbopascal binaries are extremely light.
Lets start with lazarus:
And our starting point is a function called entry that calls the console initialization and retrieve some console configurations, and then start a labyrinth of function calls.
On functions 10000e8e0 there is the function that calls the main function.
I named execute_param2 because the second param is a function pointer that is gonna be executed without parameters, it sounds like main calling typical strategy.
And here we are, it's clearly the user code pascal main function.
What it seems is that function 100001800 returns an string object, then is called its constructor to initialize the string, then the string is passed to other functions that prints it to the screen.
This function executes the method 0x1c0 of the object until the byte 0x89 is a null byte.
What the hell is doing here?
First of all let's create the function main:
Simply right button create function:
After a bit of work on Ghidra here we have the main:
Note that the struct member so high like 0x1b0 are not created by default, we should import a .h file with an struct or class definition, and locate the constructor just on that position.
The mysterious function was printing byte a byte until null byte, the algorithm the compiler implemented in asm is not as optimized as turbopascal's.
In Windbg we can see the string object in eax after being created but before being initialized:

Just before executing the print function, the RCX parameter is the string object and it still identical:
Let's see the constructor code.
The constructor address can be guessed on static walking the reverse-cross-references to main, but I located it in debugging it in dynamic analysis.
The constructor reads only a pointer stored on the string object on the position 0x98.
And we have that the pointer at 0x98 is compared with the address of the literal, so now we know that this pointer points to the string.
The sentence *string_x98 = literal confirms it, and there is not memory copy, it only points reusing the literal.
There are two ways to follow the references in Ghidra, one is [ctrl] + [shift] + F but there is other trick which is simply clicking the green references texts on the disassembly.
At the beginning I doubted and put the name possible_main, but it's clearly the pascal user code main function.
The char array initialization Is converted by freepascal compiler to an runtime initialization using mov instructions.
Reducing the coverage on dynamic we arrive to the writeln function:
EAX helds a pointer to a struct, and the member 0x24 performs the printing. In this cases the function can be tracked easily in dynamic executing the sample.
And lands at 0x004059b0 where we see the WriteFile, the stdout descriptor, the text and the size supplied by parameter.
there is an interesting logic of what happens if WriteFile() couldn't write all the bytes, but this is other scope.
Lets see how this functions is called and how text and size are supplied to figure out the string object.
EBX helds the string object and there are two pointers, a pointer to the string on 0x18 and the length in 0x18, lets verify it on windbg.
And here we have the string object, 0x0000001e is the length, and 0x001de8a68 is the pointer.
Thanks @capi_x for the pascal samples.
The program:
program strtest;
var
cstr: array[0..10] of char;
s, s2: ShortString;
begin
cstr := 'hello world';
s := cstr;
s2 := 'test';
WriteLn(cstr + ' ' + s + ' ' + s2);
end.
We are going to compile it with freepascal and lazarus, and just the binary size differs a lot:
lazarus 242,176 btytes 845 functions
freepascal 32,256 bytes 233 functions
turbopascal 2,928 bytes 80 functions (wow)
And surprisingly turbopascal binaries are extremely light.
Lets start with lazarus:
Logically it imports from user32.dll some display functions, it also import the kernel32.dll functions and suspiciously the string operations of oleaut32.dll
On functions 10000e8e0 there is the function that calls the main function.
I named execute_param2 because the second param is a function pointer that is gonna be executed without parameters, it sounds like main calling typical strategy.
And here we are, it's clearly the user code pascal main function.
What it seems is that function 100001800 returns an string object, then is called its constructor to initialize the string, then the string is passed to other functions that prints it to the screen.
This function executes the method 0x1c0 of the object until the byte 0x89 is a null byte.
What the hell is doing here?
First of all let's create the function main:
After a bit of work on Ghidra here we have the main:
Note that the struct member so high like 0x1b0 are not created by default, we should import a .h file with an struct or class definition, and locate the constructor just on that position.
The mysterious function was printing byte a byte until null byte, the algorithm the compiler implemented in asm is not as optimized as turbopascal's.
In Windbg we can see the string object in eax after being created but before being initialized:

Just before executing the print function, the RCX parameter is the string object and it still identical:
Let's see the constructor code.
The constructor address can be guessed on static walking the reverse-cross-references to main, but I located it in debugging it in dynamic analysis.
The constructor reads only a pointer stored on the string object on the position 0x98.
And we have that the pointer at 0x98 is compared with the address of the literal, so now we know that this pointer points to the string.
The sentence *string_x98 = literal confirms it, and there is not memory copy, it only points reusing the literal.
Freepascal
The starting labyrinth is bigger than Lazarus so I had to begin the maze from the end, searching the string "hello world" and then finding the string references:There are two ways to follow the references in Ghidra, one is [ctrl] + [shift] + F but there is other trick which is simply clicking the green references texts on the disassembly.
At the beginning I doubted and put the name possible_main, but it's clearly the pascal user code main function.
The char array initialization Is converted by freepascal compiler to an runtime initialization using mov instructions.
Reducing the coverage on dynamic we arrive to the writeln function:
EAX helds a pointer to a struct, and the member 0x24 performs the printing. In this cases the function can be tracked easily in dynamic executing the sample.
And lands at 0x004059b0 where we see the WriteFile, the stdout descriptor, the text and the size supplied by parameter.
Lets see how this functions is called and how text and size are supplied to figure out the string object.
EBX helds the string object and there are two pointers, a pointer to the string on 0x18 and the length in 0x18, lets verify it on windbg.
And here we have the string object, 0x0000001e is the length, and 0x001de8a68 is the pointer.
Thanks @capi_x for the pascal samples.
Related news
- Install Pentest Tools Ubuntu
- Hacker Search Tools
- Hacker Search Tools
- Hacking Tools For Windows Free Download
- Hacker Tools Mac
- Hack Tools
- Pentest Tools Linux
- Github Hacking Tools
- Pentest Tools Online
- World No 1 Hacker Software
- Game Hacking
- Pentest Tools Nmap
- New Hack Tools
- Pentest Tools Bluekeep
- Black Hat Hacker Tools
- Hack Rom Tools
- Pentest Tools Apk
- Hacker Tools 2020
- Pentest Tools Apk
- Hack And Tools
- What Are Hacking Tools
- Pentest Tools Open Source
- Hack Website Online Tool
- Hack Tools
- Hacking Tools Mac
- Hacking Apps
- Pentest Tools For Android
- Hacking Tools Online
- Nsa Hack Tools Download
- Pentest Tools Review
- Hacking Tools And Software
- Pentest Tools Windows
- Hacking Tools For Pc
- Blackhat Hacker Tools
- Best Hacking Tools 2020
- Hacking Tools Free Download
- Hacking App
- Hacking Apps
- Hacking Apps
- Hacker Tools Online
- Pentest Tools Android
- Pentest Tools Subdomain
- Best Pentesting Tools 2018
- Hacking Tools For Beginners
- Nsa Hack Tools
- How To Make Hacking Tools
- Pentest Tools For Android
- Pentest Tools List
- Hacking Tools Hardware
- Hack Tools For Windows
- Hacker Tools 2019
- Game Hacking
- Underground Hacker Sites
- Pentest Tools Tcp Port Scanner
- Hack Tools For Windows
- Physical Pentest Tools
- Best Hacking Tools 2020
- Hacker Security Tools
- Pentest Tools Nmap
- Tools 4 Hack
- Hacker Tools Free Download
- Hack Tools For Games
- Hacking Tools Pc
- Game Hacking
- Pentest Tools For Android
- Pentest Tools Android
- Hacking Apps
- Pentest Tools Website
- Hacking Tools 2020
- What Is Hacking Tools
- Hack Tools For Ubuntu
- Beginner Hacker Tools
- Hacking Tools For Beginners
- Hacking Tools Kit
- Pentest Tools Framework
- Hacker Tools 2019
- Hacking Tools For Games
- Pentest Tools Framework
- Hacker Tools For Pc
- Hack Tools 2019
- Pentest Tools Subdomain
- Hack Tools Download
- Hacking Tools For Windows
- Best Pentesting Tools 2018
- Hacking Tools Usb
- Hacking Tools Usb
- Bluetooth Hacking Tools Kali
- Hacking App
- Hack Rom Tools
- Blackhat Hacker Tools
- Hack Tool Apk No Root
- Pentest Tools Review
- Hack Tools Pc
- Pentest Tools Android
- Hacker Hardware Tools
- Growth Hacker Tools
- Pentest Tools Apk
- Hacking App
- Hacker Tools Github
- Hacker Tools Software
- Pentest Tools Android
- Hacking Tools Github
- Hack Tools
- Ethical Hacker Tools
- Hacker Tools Linux
- Hacking Tools 2019
- Github Hacking Tools
- Hack Rom Tools
- Kik Hack Tools
- Top Pentest Tools
- Hacker Tools 2020
- Pentest Tools Free
- Hack Tools For Games
- Beginner Hacker Tools
- Hacker Tools Software
- Hack Tools
- Black Hat Hacker Tools
- Install Pentest Tools Ubuntu
- Pentest Tools Website
- Pentest Tools Windows
- Hacking Tools For Windows Free Download
- Hacking Tools For Pc
- Termux Hacking Tools 2019
- Hack Tools
- Physical Pentest Tools
- How To Make Hacking Tools
- Hack Tools For Mac
- Hacking Tools Windows 10
- Hack Website Online Tool
- Pentest Tools Website
- Best Hacking Tools 2020
- Hacking Tools
- Hak5 Tools
- Hack App
- Hack Tools Pc
- Hack Tools For Ubuntu
- New Hacker Tools
- Tools Used For Hacking
- Hacker Tools 2019
- Hack Tools Download
- Tools 4 Hack
- Tools Used For Hacking
- Hacker Hardware Tools
- Game Hacking
- Hacker Tools Hardware
- Hacker Tools List
- Pentest Tools Alternative
- Pentest Tools Website Vulnerability
- Hacker Tools Mac
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Download
- Kik Hack Tools
- Physical Pentest Tools
BurpSuite Introduction & Installation
What is BurpSuite?
Burp Suite is a Java based Web Penetration Testing framework. It has become an industry standard suite of tools used by information security professionals. Burp Suite helps you identify vulnerabilities and verify attack vectors that are affecting web applications. Because of its popularity and breadth as well as depth of features, we have created this useful page as a collection of Burp Suite knowledge and information.
In its simplest form, Burp Suite can be classified as an Interception Proxy. While browsing their target application, a penetration tester can configure their internet browser to route traffic through the Burp Suite proxy server. Burp Suite then acts as a (sort of) Man In The Middle by capturing and analyzing each request to and from the target web application so that they can be analyzed.
Everyone has their favorite security tools, but when it comes to mobile and web applications I've always found myself looking BurpSuite . It always seems to have everything I need and for folks just getting started with web application testing it can be a challenge putting all of the pieces together. I'm just going to go through the installation to paint a good picture of how to get it up quickly.
BurpSuite is freely available with everything you need to get started and when you're ready to cut the leash, the professional version has some handy tools that can make the whole process a little bit easier. I'll also go through how to install FoxyProxy which makes it much easier to change your proxy setup, but we'll get into that a little later.
Requirements and assumptions:
Mozilla Firefox 3.1 or Later Knowledge of Firefox Add-ons and installation The Java Runtime Environment installed
Download BurpSuite from http://portswigger.net/burp/download.htmland make a note of where you save it.
on for Firefox from https://addons.mozilla.org/en-US/firefox/addon/foxyproxy-standard/
If this is your first time running the JAR file, it may take a minute or two to load, so be patient and wait.
Video for setup and installation.
You need to install compatible version of java , So that you can run BurpSuite.
Read more
- Hacking Tools Download
- Android Hack Tools Github
- Hacker Tools For Mac
- Pentest Automation Tools
- Hacking Tools Online
- How To Hack
- Hack Tools Pc
- Best Hacking Tools 2020
- Pentest Tools Apk
- Hacker Tools For Mac
- Hacking Tools And Software
- Pentest Tools For Windows
- Hacker Tools Software
- Growth Hacker Tools
- Pentest Tools Windows
- How To Make Hacking Tools
- Pentest Recon Tools
- Pentest Tools Tcp Port Scanner
- New Hack Tools
- Hacking Tools Mac
- Hak5 Tools
- Hack Tools Mac
- Pentest Tools Free
- Hack Tools 2019
- Pentest Tools For Android
- Pentest Tools Download
- Game Hacking
- Hack Tools Mac
- Hacker Tools For Ios
- Hacker Tools Free Download
- Pentest Tools Github
- Hacker Tools For Windows
- Pentest Tools Windows
- How To Make Hacking Tools
- Hacker Tools Linux
- Pentest Box Tools Download
- Pentest Tools Website Vulnerability
- Hack Tools Mac
- Pentest Tools Tcp Port Scanner
- Hacking Tools Windows 10
- Pentest Tools Subdomain
- Pentest Tools Subdomain
- Free Pentest Tools For Windows
- Pentest Tools Alternative
- Hack Tools For Windows
- Hacking Tools Kit
- Hacking Tools For Windows Free Download
- Hacker Tools Free Download
- Pentest Tools Find Subdomains
- Computer Hacker
- Pentest Tools Website Vulnerability
- Hacker Tools Hardware
- Hacking Tools For Pc
- Hacker Tools List
- Hacking Tools And Software
- Hack Tool Apk
- Pentest Automation Tools
- Pentest Tools Tcp Port Scanner
- Hacker Tools For Windows
- Github Hacking Tools
- Hacking Tools For Kali Linux
- Hack Tools Github
- Hack Tools For Ubuntu
- Hacking Tools Mac
- Easy Hack Tools
- Blackhat Hacker Tools
- Hacker Search Tools
- Hack Tools For Games
- Hack Tools
- Hacker Tools Apk
- Pentest Tools Url Fuzzer
- What Are Hacking Tools
- Hack Rom Tools
- Hacker Security Tools
- Hacking Tools 2019
- Hak5 Tools
- Hacker Tools Online
- Pentest Reporting Tools
- Hacking Tools Online
- How To Install Pentest Tools In Ubuntu
- Hacking Tools For Mac
- Pentest Tools Alternative
- Pentest Tools For Windows
- Hacker Techniques Tools And Incident Handling
- Best Pentesting Tools 2018
- Hacking Tools Windows
- Hacker Tools
- Kik Hack Tools
- Pentest Reporting Tools
- Hack Tool Apk
- Pentest Tools Kali Linux
- Hacker Techniques Tools And Incident Handling
- Hacking Tools For Windows Free Download
- Hacker Tools Online
Hackerhubb.blogspot.com
Hackerhubb.blogspot.com
Related word
- Termux Hacking Tools 2019
- Hacker Tools For Ios
- Hack Tools For Windows
- Hacking Tools Hardware
- Hack Tools Online
- Pentest Tools List
- Hacker Tools Apk Download
- Hacking Tools For Games
- Wifi Hacker Tools For Windows
- Hacker Tools Github
- Easy Hack Tools
- Pentest Tools Open Source
- Hacker Tools Software
- Hacker Tools Online
- Hacking Tools
- Hacker Search Tools
- Best Pentesting Tools 2018
- Hacking Tools Name
- Pentest Tools Windows
- Hacker Tool Kit
- Hacking Tools For Mac
- Pentest Tools Url Fuzzer
- New Hack Tools
- Pentest Tools Linux
- Pentest Automation Tools
- What Is Hacking Tools
- Pentest Tools Download
- Pentest Tools Subdomain
- Pentest Tools Github
- Bluetooth Hacking Tools Kali
- Hack Rom Tools
- Hacking Tools Mac
- Hacker Tools Windows
- Pentest Tools Windows
- Hacking Tools 2019
- Nsa Hack Tools Download
- Hacker Tools 2019
- World No 1 Hacker Software
- Tools Used For Hacking
- Hacker Tools For Pc
- Best Hacking Tools 2019
- What Is Hacking Tools
- Android Hack Tools Github
- Beginner Hacker Tools
- Hacker Tools For Mac
- Hacker Tools 2019
- Pentest Tools Windows
- Hacking Tools For Mac
- Hacker Tools Linux
- Pentest Automation Tools
- Hacker Tools For Windows
- Hacking Tools For Windows
- Pentest Tools Alternative
- Bluetooth Hacking Tools Kali
- Pentest Tools Kali Linux
- Hacking Tools Usb
- Kik Hack Tools
- Pentest Automation Tools
- Hackers Toolbox
- Pentest Box Tools Download
- Termux Hacking Tools 2019
- Hacker Tools Mac
- Hack Tools For Windows
- Hacker Tools 2019
- Github Hacking Tools
- Android Hack Tools Github
- Hacker Tools 2020
- Pentest Tools Find Subdomains
- Pentest Tools For Mac
- Computer Hacker
- Hacker Tools For Windows
- Hacking Tools Free Download
- Tools Used For Hacking
- Hacker Security Tools
- Pentest Tools Alternative
- Pentest Tools Alternative
- Hacker Tools Free Download
- Kik Hack Tools
- Pentest Box Tools Download
- Underground Hacker Sites
- Hacker Tools List
- Hacker Tools 2019
- Hacker Tool Kit
- Blackhat Hacker Tools
- Hack Tools Pc
- Pentest Recon Tools
- Hacking Tools Pc
- Pentest Tools Online
- Hack Tools For Mac
- Hacker Tools For Windows
Suscribirse a:
Entradas (Atom)





















