- Pentest Tools Tcp Port Scanner
- Pentest Recon Tools
- Hacker Tools Linux
- Best Hacking Tools 2019
- Usb Pentest Tools
- Kik Hack Tools
- Hacker Tools Apk Download
- Hacking Tools Mac
- Hack Tools For Windows
- Tools 4 Hack
- Android Hack Tools Github
- Hacker Tools Free
- Pentest Tools Bluekeep
- Hacker Tools For Ios
- Pentest Tools Download
- Pentest Tools Website
- Pentest Tools Review
- Hacking Tools For Windows Free Download
- Tools 4 Hack
- Pentest Tools Github
- Hacking Tools For Kali Linux
- Hacking Tools Windows 10
- Hacker Tools Github
- Hak5 Tools
- What Is Hacking Tools
- Ethical Hacker Tools
- Game Hacking
- Pentest Tools Free
- Best Hacking Tools 2019
- Best Hacking Tools 2020
- Hack Tools Online
- Hacker Tools Mac
- Termux Hacking Tools 2019
- Pentest Tools Android
- Hacker Tool Kit
- Pentest Tools Download
- Easy Hack Tools
- Hack Tools 2019
- Hacking App
- Hack Tools Mac
- Blackhat Hacker Tools
- Hacker Tools Linux
- Nsa Hack Tools
- Hacking Tools For Mac
- Usb Pentest Tools
- Game Hacking
- Free Pentest Tools For Windows
- Hacking Tools For Windows Free Download
- Hacker Tools For Mac
- Hack Tools For Mac
- Hacking Tools Kit
- Hacking Tools Name
- Hacking Tools Name
Wednesday, May 31, 2023
Hackerhubb.blogspot.com
Hackerhubb.blogspot.comRead more
Learning Web Pentesting With DVWA Part 1: Installation
In this tutorial series I'm going to walk you through the damn vulnerable web application (DVWA) which is damn vulnerable. Its main goal according to the creators is "to aid security professionals to test thier skills and tools in a legal environment, help web developers better understand the process of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment."
I am going to install DVWA in docker so the prerequisite for this tutorial will be an installation of docker (Docker is not the only way to install DVWA but if you have docker already installed then it may be the easiest way to install DVWA).
To install DVWA in docker run your docker deamon if it's not running already and open a terminal or powershell and type:
docker rum --rm -it -p 8080:80 vulnerables/web-dvwa
It will take some time to pull the image from docker hub depending on your internet speed and after it is complete it will start the dvwa application. In the command we have mapped the image instance's port 80 to our hosts port 8080 so we should be able to access the web application from our host at http://localhost:8080
Now open your favorite web browser and go to http://localhost:8080
You should be prompted with a login screen like this:
login with these creds:
username: admin
password: password
After login you'll see a database setup page since this is our first run. Click on Create / Reset Database button at the bottom. It will setup database and redirect you to login page. Now login again and you'll see a welcome page.
Now click on DVWA Security link at the bottom of the page navigation and make sure the security level is set to Low. If it is not click on the dropdown, select Low and then click submit.
Now our setup is complete, so lets try a simple SQL attack to get a taste of whats about to come.
Click on SQL Injection in navigation menu.
You'll be presented with a small form which accepts User ID.
Enter a single quote (') in the User ID input field and click Submit.
You'll see an SQL error like this:
From the error message we can determine that the server has a MariaDB database and we can see the point of injection.
Since there are many quotes we are not able to determine the exact location of our injection. Lets add some text after our single quote to see exactly where our injection point is.
Now I am going to enter 'khan in the User ID field and click Submit.
Now we can see exactly where the point of injection is. Determining the point of injection is very important for a successful SQL injection and is sometimes very hard too, though it might not be that much useful here in this exercise.
Now lets try the very basic SQL Injection attack.
In the User ID field enter ' or 1=1-- - and click Submit.
We will explain what is going on here in the next article.
References:-
1. DVWA Official Website: http://www.dvwa.co.uk/
- Hak5 Tools
- New Hacker Tools
- Hacking Tools For Pc
- Hack Tools For Windows
- Pentest Tools Url Fuzzer
- Usb Pentest Tools
- Hacking Tools For Kali Linux
- Tools For Hacker
- Top Pentest Tools
- Hacker Tools Github
- Pentest Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Nmap
- Github Hacking Tools
- Hack Tools Online
- Hacking Tools For Games
- Hacker Tools For Mac
- Hacking Tools Windows 10
- New Hack Tools
- Hack Tool Apk No Root
- Hackrf Tools
- Hacking Tools For Kali Linux
- Pentest Reporting Tools
- New Hack Tools
- Hack Tools 2019
- Hacking Tools For Mac
- Hacker Tools Linux
- Hacker Tools For Mac
- How To Install Pentest Tools In Ubuntu
- Beginner Hacker Tools
- Hacker Tools For Pc
- Hacking Tools For Beginners
- Usb Pentest Tools
- Hacking Tools Windows
- Hacking Tools Kit
- Hacks And Tools
- Nsa Hacker Tools
- How To Make Hacking Tools
- How To Install Pentest Tools In Ubuntu
- Pentest Tools Online
- Android Hack Tools Github
- Hackers Toolbox
- Black Hat Hacker Tools
- Pentest Tools Port Scanner
- Pentest Tools Download
- Beginner Hacker Tools
- Hacker Tools Mac
- New Hacker Tools
- Hackrf Tools
- Android Hack Tools Github
- Hacking Tools Free Download
- Hack Tools For Mac
- Hacking App
- Hack Tools For Pc
- Game Hacking
- Hack Apps
- Hacking Tools For Windows 7
- Hacking Tools And Software
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Find Subdomains
- Hacking Tools For Windows
- Hacking Tools Software
- Best Hacking Tools 2019
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.
Continue reading
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.
Continue reading
- Hack Tool Apk
- Hacker Tools Free Download
- Pentest Tools Windows
- Hack Tools For Pc
- How To Make Hacking Tools
- Hack Tools Pc
- Hack Tools For Windows
- Underground Hacker Sites
- Hacker Tools Linux
- What Is Hacking Tools
- Pentest Tools Bluekeep
- Pentest Tools
- Hacker Security Tools
- Pentest Tools Apk
- Android Hack Tools Github
- Hacker Tools 2020
- Hacking Tools Windows
- Game Hacking
- Hacking Tools 2020
- World No 1 Hacker Software
- Pentest Tools Apk
- Beginner Hacker Tools
- Bluetooth Hacking Tools Kali
- World No 1 Hacker Software
- Hacking Tools Pc
- Bluetooth Hacking Tools Kali
- Hacker Tools Free
- Kik Hack Tools
- Hacker Tools Online
- Hackrf Tools
- Hacking Tools For Beginners
- Usb Pentest Tools
- Pentest Tools Alternative
- Hacking Tools For Windows Free Download
- Hack Tool Apk
- Hack Tools Download
- Hack Tools Mac
- Hacker Search Tools
- Hack Tools For Ubuntu
- Github Hacking Tools
- Android Hack Tools Github
- Hacking Tools Hardware
- Hacking Tools For Pc
- Hack Tools For Pc
- Pentest Tools
- Hacker Tools For Mac
- Usb Pentest Tools
- Physical Pentest Tools
- Hacking Tools Kit
- How To Hack
- World No 1 Hacker Software
- Hacker Tools Apk Download
- Hacks And Tools
- Hack Tools Download
- Bluetooth Hacking Tools Kali
- Pentest Tools Nmap
- Hacking Tools For Games
- Pentest Tools For Android
- What Is Hacking Tools
- Hackrf Tools
Tuesday, May 30, 2023
Hackerhubb.blogspot.com
Hackerhubb.blogspot.com
Related word
- Hack Tools Mac
- Hacks And Tools
- Hacker Tools For Pc
- Pentest Tools List
- Hacker Tools Free
- Free Pentest Tools For Windows
- Best Hacking Tools 2020
- Hacker Tools Online
- Hacking Tools Windows
- Hacker Hardware Tools
- Hacking Tools For Mac
- Hacker Tools Apk Download
- Black Hat Hacker Tools
- What Are Hacking Tools
- Hacker Tools For Mac
- Pentest Tools Android
- Hacker Tools Hardware
- Pentest Tools
- Hacker Tools For Pc
- Pentest Tools Windows
- Tools 4 Hack
- Hacker Tools For Windows
- Computer Hacker
- New Hack Tools
- Hacking Tools Name
- Hacking Tools Software
- Hacking Tools For Windows
- Pentest Tools Github
- Best Hacking Tools 2019
- Hacker Techniques Tools And Incident Handling
- Hacker Tools Linux
- Android Hack Tools Github
- Pentest Tools Find Subdomains
- Hacking Tools Windows
- Hack Tools Pc
- How To Install Pentest Tools In Ubuntu
- Hacking Tools For Games
- Hack Tools For Mac
- Hacking Tools 2020
- Easy Hack Tools
- Hack Tools For Pc
- Pentest Tools Download
- Easy Hack Tools
- Hacker Search Tools
- Hacker Tools Free Download
- Hacking Tools Windows
- Hacking Tools For Mac
- Ethical Hacker Tools
- Pentest Tools Website Vulnerability
- Hacking Tools Pc
- Best Pentesting Tools 2018
- Hack App
- Hack Tools
- Wifi Hacker Tools For Windows
- Blackhat Hacker Tools
- Blackhat Hacker Tools
- Tools For Hacker
- Usb Pentest Tools
- Pentest Tools Github
- Hacker Tools Mac
- Hack Tools Pc
- Hackrf Tools
- Pentest Tools Website
- Pentest Reporting Tools
- Pentest Tools Website
- Hacking Tools Name
- Hack Tools Download
- Hacking Tools Github
- Nsa Hacker Tools
- Usb Pentest Tools
- Hacker Tools For Pc
- Pentest Tools For Android
- Hak5 Tools
- Hack Tools For Mac
- Hack Tools For Games
- Hackrf Tools
- Pentest Tools Alternative
- Pentest Tools For Windows
- Nsa Hack Tools Download
- Pentest Tools Alternative
- What Is Hacking Tools
- Hacking Tools Windows 10
- Growth Hacker Tools
- Hacking App
- Pentest Tools List
- Hacking Tools 2020
- Termux Hacking Tools 2019
- Pentest Tools Alternative
- Pentest Tools For Windows
- Termux Hacking Tools 2019
- Hacker Tools List
- Hack Tools For Ubuntu
- Hacker Tools Hardware
- Hack Tools For Windows
- Pentest Tools Nmap
- Hack Tools For Ubuntu
- Hacking Tools
- Hacker
- Hacking App
- Ethical Hacker Tools
- Pentest Tools For Android
- Hacking Tools For Windows Free Download
- Hacker Tools Apk Download
- Pentest Tools Tcp Port Scanner
- Black Hat Hacker Tools
- Hacking Tools 2019
- What Are Hacking Tools
- Hack Tools Download
- Pentest Tools Url Fuzzer
- Pentest Tools Free
- Hacking Tools 2019
- Pentest Tools List
- Hacking Tools For Mac
- Hack Apps
- Hacker Tools Mac
- Hack Tools Download
- Nsa Hack Tools
- Pentest Tools Open Source
- Hack Tool Apk
- Hacking Tools Online
- Pentest Tools Github
- Hacking Tools Windows
- Tools For Hacker
- Hacking Tools Windows 10
- How To Install Pentest Tools In Ubuntu
- Install Pentest Tools Ubuntu
- Pentest Tools Android
- Hacking Tools
- Hacking Apps
- Beginner Hacker Tools
- Hacker Tools Mac
- Physical Pentest Tools
- Pentest Tools Windows
- Easy Hack Tools
- Hacking Tools Name
- Blackhat Hacker Tools
- Hacking Tools Kit
- Pentest Tools Github
- Hacking Tools Pc
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Url Fuzzer
- Hacker Tools Free
- Tools For Hacker
- Pentest Tools Open Source
- Pentest Automation Tools
- Hacker Tools Github
- World No 1 Hacker Software
- Hacker Tools Free Download
- Beginner Hacker Tools
- Underground Hacker Sites
- Hacking Tools And Software
- Hacker Hardware Tools
- Hacking Tools Windows 10
- Nsa Hacker Tools
- Hacking Tools Online
- Hacker Tools For Pc
- Hacker Tools For Pc
- Hacker Tools For Mac
- Pentest Tools For Mac
- Underground Hacker Sites
- Usb Pentest Tools
- Blackhat Hacker Tools
Subscribe to:
Posts (Atom)