Transparency Myanmar

transparency.myanmar@gmail.com

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:




Logically it imports from user32.dll some display functions, it also import the kernel32.dll functions and suspiciously the string operations of oleaut32.dll 


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.



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.


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


  1. Pentest Tools Website Vulnerability
  2. Hacker Tools Free Download
  3. Pentest Tools For Windows
  4. Hackers Toolbox
  5. Hacking Tools Kit
  6. Best Hacking Tools 2020
  7. Hack Tools For Pc
  8. New Hacker Tools
  9. Pentest Tools Website Vulnerability
  10. Hackrf Tools
  11. Hack Tools Github
  12. Hackers Toolbox
  13. Beginner Hacker Tools
  14. Pentest Recon Tools
  15. Hacker Tools Mac
  16. Pentest Tools Kali Linux
  17. What Is Hacking Tools
  18. Pentest Tools Kali Linux
  19. Game Hacking
  20. Ethical Hacker Tools
  21. Pentest Tools Apk
  22. Hack Tools
  23. Pentest Tools Linux
  24. Hacker Tools Linux
  25. Hacking Tools For Kali Linux
  26. Hacking Tools Download
  27. Pentest Tools Url Fuzzer
  28. Hacking Tools
  29. Hacking Tools And Software
  30. Hackers Toolbox
  31. Hacking Tools For Windows
  32. How To Make Hacking Tools
  33. Beginner Hacker Tools
  34. Hack Tools
  35. Top Pentest Tools
  36. Hacker Tools Mac
  37. Pentest Tools Port Scanner
  38. Hacking Tools Online
  39. Hacking Tools Software
  40. Nsa Hack Tools Download
  41. Hacker Tools Free Download
  42. Hack Tools
  43. Hacker Tools Windows
  44. Tools For Hacker
  45. Ethical Hacker Tools
  46. Hak5 Tools
  47. Hacks And Tools
  48. Hacker Tools Hardware
  49. Hack App
  50. Hacking Tools For Beginners
  51. Easy Hack Tools
  52. Hack Rom Tools
  53. Hacker Hardware Tools
  54. Hacker Hardware Tools
  55. Computer Hacker
  56. Hack And Tools
  57. Hacking Tools Free Download
  58. Hacker Tool Kit
  59. Hack Tools For Mac
  60. Hacking Tools For Beginners
  61. Hacker Tools Hardware
  62. Hacking Tools For Games
  63. Hacker Tools For Ios
  64. Best Hacking Tools 2019
  65. Hacking Tools For Pc
  66. Hacker Tools For Mac
  67. Pentest Tools Bluekeep
  68. Hacks And Tools
  69. Computer Hacker
  70. Pentest Tools For Mac
  71. Hack Tools
  72. Termux Hacking Tools 2019
  73. How To Make Hacking Tools
  74. What Are Hacking Tools
  75. Hacking Tools Free Download
  76. Pentest Tools For Android
  77. Pentest Tools
  78. Hacking Tools For Mac
  79. Github Hacking Tools
  80. Pentest Tools Apk
  81. Hacking Tools Online
  82. Pentest Tools Github
  83. How To Make Hacking Tools
  84. Pentest Tools Website
  85. Hack Tool Apk
  86. Nsa Hack Tools Download
  87. What Is Hacking Tools
  88. Pentest Recon Tools
  89. Nsa Hack Tools Download
  90. Hacking Tools Download
  91. Wifi Hacker Tools For Windows
  92. Hacking Tools Free Download
  93. Nsa Hack Tools Download
  94. Pentest Tools Bluekeep
  95. Hacking Tools 2020
  96. Pentest Tools Find Subdomains
  97. Pentest Tools Framework
  98. Hacker Hardware Tools
  99. Hack Tools For Ubuntu
  100. Wifi Hacker Tools For Windows
  101. Pentest Automation Tools
  102. Pentest Tools Url Fuzzer
  103. Hack Tools Mac
  104. Hacker Tools Apk
  105. Hack Tools For Ubuntu
  106. How To Hack
  107. Hak5 Tools
  108. Pentest Tools For Android
  109. Easy Hack Tools
  110. Hacker Tools Linux
  111. Hack And Tools
  112. Hacker Search Tools
  113. Hack Tools For Mac
  114. Hacker Tools For Windows
  115. Hack And Tools
  116. Hacking Tools For Kali Linux
  117. Kik Hack Tools
  118. Hacker Tools Linux
  119. Hacking Tools Kit
  120. Pentest Tools Download
  121. Hack Tools Online
  122. Hacker Tools Free
  123. Hacking Tools Hardware
  124. Hacking Tools For Pc
  125. Hacker Security Tools
  126. Hack Tools For Ubuntu
  127. Hack Tools For Windows
  128. Hacking Tools Kit
  129. What Are Hacking Tools
  130. Hack Tools For Ubuntu
  131. Nsa Hacker Tools

Types of hacking?
We can segregate hacking into different categories, based on what being hacked. Here is a set of examples-

1-Website Hacking- Hacking a website means taking unauthorized control over a web server and its associated software such as databases and other interfaces.

2-Network Hacking-Hacking a network means gathering information about a network by using tool like Telnet, Nslookup, Ping, Tracert, Netstat etc with the intent to harm the network system and hamper its operation.

3-Email Hacking-It includes getting unauthorized access on an Email account and using it without taking the permission of the owner.

4-Ethical Hacking-It involves finding weakness in a computer or network system for testing purpose and finally getting them fixed.

5-Password Hacking-This is the process of recovering secret password from data that has been stored in or transmitted by a computer system.

6-Computer Hacking-This is the process of stealing computer ID & Passwords by applying hacking methods and getting unauthorized access to a computer system.

Related articles


Microsoft offers Windows 10 as a free upgrade for computers running a genuine copy of Windows 7 or Windows 8.1. Also, similar to previous releases, the operating system is available on different editions and two versions: 32-bit and 64-bit.While upgrading from Windows 10 Home to Windows 10 Pro is not free, what many people are unfamiliar with is that Microsoft won't ask for more money to upgrade from a 32-bit to a 64-bit version.
However, the upgrade path only allows moving from a qualifying version to its equivalent edition on the same architecture. This limit means that if your PC is running a 32-bit version of Windows 8.1, after the upgrade you'll be stuck with the 32-bit version of Windows 10 — even if your computer's processor can handle the 64-bit version. The only solution is to make a clean installation of the operating system and reconfigure all your apps and settings.
iemhacker-how-to-switch-from-32-bit-windows-to 64bit
In this Windows 10 guide, we'll walk you through the steps to verify whether your computer in fact includes support for a 64-bit version and we'll guide you through the upgrade process to Windows 10 (x64).

Make sure Windows 10 64-bit is compatible with your PC

A 64-bit version of Windows can only be installed on computers with capable hardware. As such, the first thing you need to do is to determine whether your computer has a 64-bit processor.
You can easily get this information from the Settings app.
  1. Use the Windows key + I keyboard shortcut to open the Settings app.
  2. Click System.
  3. Click About.
  4. Under System type, you will see two pieces of information: if it says 32-bit operating system, x64-based processor, then it means that your PC is running a 32-bit version of Windows 10 on a 64-bit processor. If it says 32-bit operating system, x86-based processor, then your computer doesn't support Windows 10 (64-bit).

Make Sure Your Processor is 64-bit Capable

First thing's first. Before even thinking of upgrading to 64-bit Windows, you'll need to confirm that the CPU in your computer is 64-bit capable. To do so, head to Settings > System > About. On the right-hand side of the window, look for the "System type" entry.

You'll see one of three things here:

  • 64-bit operating system, x64-based processor. Your CPU does support 64-bit and you already have the 64-bit version of Windows installed.
  • 32-bit operating system, x86-based processor. Your CPU does not support 64-bit and you have the 32-bit version of Windows installed.
  • 32-bit operating system, x64-based processor. Your CPU supports 64-bit, but you have the 32-bit version of Windows installed.
If you see the first entry on your system, you don't really need this article. If you see the second entry, you won't be able to install the 64-bit version of Windows on your system at all. But if you see the last entry on your system—"32-bit operating system, x64-based processor"—then you're in luck. This means you're using a 32-bit version of Windows 10 but your CPU can run a 64-bit version, so if you see it, it's time to move on to the next section.
Make Sure Your PC's Hardware Has 64-bit Drivers Available
Even if your processor is 64-bit compatible, you might want to consider whether your computer's hardware will work properly with a 64-bit version of Windows. 64-bit versions of Windows require 64-bit hardware drivers, and the 32-bit versions you're using on your current Windows 10 system won't work.
Modern hardware should certainly offer 64-bit drivers, but very old hardware may no longer be supported and the manufacturer may have never offered 64-bit drivers. To check for this, you can visit the manufacturer's driver download web pages for your hardware and see if 64-bit drivers are available. You shouldn't necessarily need to download these from the manufacturer's website, though. They are likely included with Windows 10 or automatically will be downloaded from Windows Update. But old hardware—for example, a particularly ancient printer—simply may not offer 64-bit drivers.

Upgrade by Performing a Clean Install

You'll need to perform a clean install to get to the 64-bit version of Windows 10 from the 32-bit one. Unfortunately, there's no direct upgrade path.
Warning: Back up your important files before continuing and also make sure you have what you need to reinstall your programs. This process will wipe your whole hard disk, including Windows, installed programs, and personal files.
First, if you haven't upgraded to Windows 10 yet, you'll need to use the upgrade tool to upgrade. You'll get the 32-bit version of Windows 10 if you were previously using a 32-bit version of Windows 7 or 8.1. But the upgrade process will give your PC a Windows 10 license. After upgrading, be sure to check that your current 32-bit version of Windows 10 is activated under Settings > Update & security > Activation.
Once you're using an activated version of the 32-bit Windows 10, download the Windows 10 media creation tool from Microsoft. If you're using the 32-bit version of Windows 10 at the moment, you'll have to download and run the 32-bit tool.
When you run the tool, select "Create installation media for another PC" and use the tool to create a USB drive or burn a disc with Windows 10. As you click through the wizard, you'll be asked whether you want to create 32-bit or 64-bit installation media. Select the "64-bit (x64)" architecture.
Next, restart your computer (you did back everything up, right?) and boot from the installation media. Install the 64-bit Windows 10, selecting "Custom install" and overwriting your current version of Windows. When you're asked to insert a product key, skip the process and continue. You'll have to skip two of these prompts in total. After you reach the desktop, Windows 10 will automatically check in with Microsoft and activate itself. You'll now be running the 64-bit edition of Windows on your PC.
If you want to go back to the 32-bit version of Windows, you'll need to download the media creation tool—the 64-bit version, if you're running the 64-bit version of Windows 10—and use it to create 32-bit installation media. Boot from that installation media and do another clean install—this time installing the 32-bit version over the 64-bit version.

Final Words :

Finally, you are aware of the way through which you could be able to switch from the 32-bit windows to 64-bit windows really easily. There will be no difference in the functions or the working of the windows yet the only change that you will get is the more advanced architecture that is compatible with numerous high-end apps. If you are thinking to switch your windows to the 64-bit version then make sure you first check for your hardware compatibility. Hopefully, you would have liked the information of this post, please share this post with others if you really liked it. Provide us your valuable views regarding this post through using the comments section below. At last nevertheless thanks for reading this post!

Related posts


  1. Growth Hacker Tools
  2. Hack Tools Online
  3. Pentest Tools Nmap
  4. New Hack Tools
  5. Hacker Tools Linux
  6. Pentest Tools Online
  7. Black Hat Hacker Tools
  8. Nsa Hacker Tools
  9. What Are Hacking Tools
  10. Pentest Tools Alternative
  11. Hack And Tools
  12. Android Hack Tools Github
  13. Hacking Tools For Windows
  14. Blackhat Hacker Tools
  15. Hacking Tools For Games
  16. Hacks And Tools
  17. Pentest Tools Tcp Port Scanner
  18. Hacker Tools Free
  19. Pentest Tools Framework
  20. Hacking Tools Kit
  21. Hacking Tools For Windows 7
  22. Hacking Tools For Windows 7
  23. Pentest Tools Find Subdomains
  24. Pentest Tools Download
  25. Hacking Apps
  26. Hacking Apps
  27. Best Hacking Tools 2020
  28. Pentest Tools Alternative
  29. Hack Rom Tools
  30. Black Hat Hacker Tools
  31. Hack App
  32. Easy Hack Tools
  33. Pentest Tools Open Source
  34. Hack Website Online Tool
  35. Hack Tools For Games
  36. Hacking App
  37. Install Pentest Tools Ubuntu
  38. Pentest Tools Alternative
  39. Black Hat Hacker Tools
  40. Hacker Tools Windows
  41. Computer Hacker
  42. Hacker Tools
  43. Computer Hacker
  44. Hacking App
  45. Pentest Tools Bluekeep
  46. Pentest Tools Free
  47. Hacking Tools For Mac
  48. Hacking App
  49. Hacker Tools Linux
  50. Hacking Tools For Windows Free Download
  51. Hacking Tools Usb
  52. Hacking Tools
  53. Hack Tools For Pc
  54. Hacker Tools For Ios
  55. New Hack Tools
  56. Nsa Hack Tools Download
  57. Best Hacking Tools 2019
  58. Physical Pentest Tools
  59. Hacker Tools For Pc
  60. Hacker Tools Apk Download
  61. Hack Tools For Pc
  62. Pentest Tools Free
  63. Hacking Tools Name
  64. Hacker Tools For Pc
  65. Hack Apps
  66. Pentest Tools For Mac
  67. Easy Hack Tools
  68. Hak5 Tools
  69. Hacking Tools For Games
  70. Pentest Tools Subdomain
  71. Hack Tools Download
  72. Hacking Tools Software
  73. Hacker Search Tools
  74. Hacking Tools For Mac
  75. World No 1 Hacker Software
  76. Pentest Tools Free
  77. Best Hacking Tools 2019
  78. Hacker Search Tools
  79. Wifi Hacker Tools For Windows
  80. Tools 4 Hack
  81. Hack Tool Apk No Root
  82. Pentest Tools List
  83. Hacker Tools Github
  84. Nsa Hack Tools
  85. Hacking Tools Online
  86. Hacker Tool Kit

Kali Linux has been the most advanced penetration testing machine introduced yet. It has the most valuable tools used for every sort of hacking. To take advantage of Kali Linux hacking tools, you have to switch your OS to Kali Linux. You can either install Kali Linux as your default OS or just install as a virtual machine within the same OS. You can learn more about how to install Kali Linux Virtualbox. Today in this tutorial, I am just going to share a very simple Kali Linux tutorial on how to capture screenshot in Kali Linux. It's very simple and newbie friendly.

SO, HOW TO CAPTURE SCREENSHOT IN KALI LINUX? – KALI LINUX TUTORIAL

There are two ways to capture a screenshot in Kali Linux. One is the ultimate easy one and the second one is a bit complex but it's also not so complicated. So, don't worry about anything.

INSTRUCTIONS TO FOLLOW

  • In a first way, you can take a screenshot in a similar way as you take in Windows OS by simply clicking the PrntScr button on the keyboard. As you hit that button, a screenshot will be saved in the Pictures folder of your Kali Linux. The major problem with it, it only captures the full screen. We have no control over it to capture a specific window or region.
  • The second way is to take a screenshot using the command. For that, open up a terminal in the Kali Linux and type apt-get install ImageMagick.
  • Once the command is completed and ImageMagick is installed. We have two options to take a screenshot with it. One is to capture full screen and second is to capture a specific window.
  • To capture full screen, type import -window root Pictures/AnyNameOfTheImage.png in the terminal. It will take a full screenshot and will save it to the Pictures directory by the name you specify. Make sure to type .png  at the end of the file name.
  • To take a screenshot of a specific window or region, type import Pictures/AnyNameOfTheImage.png in the terminal and hit Enter, it will turn the cursor to a selection tool. You just click the mouse button and select the area you want to capture. As you will leave the mouse key, screenshot will be saved in the Pictures folder.
That's all how you can capture screenshot in Kali Linux. This is a very simple and beginner-friendly Kali Linux tutorial to help out all the newbies how they can use this features in need. Hope it will be useful for you.
More information

  1. Hacking Tools Kit
  2. Hacker Tools Mac
  3. Hacker Tools For Pc
  4. Pentest Tools Linux
  5. Hacker Tools
  6. Hacker Tools For Mac
  7. Pentest Tools Alternative
  8. Hacking Tools For Beginners
  9. Hacker Tools Software
  10. Hacking Tools Free Download
  11. Install Pentest Tools Ubuntu
  12. Hack Tools For Games
  13. Hacking Tools For Windows
  14. Hacking Tools Pc
  15. Pentest Tools For Windows
  16. Hacking Tools 2019
  17. Pentest Tools Website
  18. Tools Used For Hacking
  19. Nsa Hacker Tools
  20. Hacker Tools 2020
  21. Hacking Tools For Windows
  22. Hack Tools For Games
  23. Nsa Hack Tools Download
  24. Easy Hack Tools
  25. Hack Tool Apk
  26. Pentest Tools Open Source
  27. Hacker Tools Apk
  28. Hack Tools Github
  29. Hak5 Tools
  30. Hacking App
  31. Growth Hacker Tools
  32. Hack Tools
  33. Ethical Hacker Tools
  34. Hacking Tools For Pc
  35. Free Pentest Tools For Windows
  36. Hack Apps
  37. Hack Tools For Mac
  38. How To Make Hacking Tools
  39. Free Pentest Tools For Windows
  40. Free Pentest Tools For Windows
  41. Pentest Tools For Android
  42. Hacking Tools 2019
  43. Pentest Tools Website
  44. Hack Apps
  45. Hack Tools Download
  46. Hacker Tools List
  47. Usb Pentest Tools
  48. How To Hack
  49. Hacking Tools Free Download
  50. Pentest Tools Tcp Port Scanner
  51. Nsa Hack Tools Download
  52. Pentest Tools Android
  53. Termux Hacking Tools 2019
  54. Hacker Tools For Windows
  55. Best Hacking Tools 2019
  56. Pentest Tools Nmap
  57. Hacker Tools 2020
  58. Hacker Tools For Pc
  59. Hacking Tools Kit
  60. Hack Tools For Windows
  61. Pentest Tools List
  62. Pentest Tools Find Subdomains
  63. Hacker Tools Online
  64. Hacking Tools Download
  65. Hack Tools For Windows
  66. Hack Tools Pc
  67. Hacker Tools Hardware
  68. Hack Tools Mac
  69. Hacker Tools Hardware
  70. Top Pentest Tools
  71. Pentest Box Tools Download
  72. Hack Tools Pc
  73. Hacking Tools For Games
  74. Hacker Tools Apk Download
  75. Hackrf Tools
  76. Hacker Techniques Tools And Incident Handling
  77. Hacking App
  78. Hacking Tools For Windows 7
  79. Hack Tools
  80. Best Hacking Tools 2019
  81. New Hack Tools
  82. Hacker Tools Github
  83. Tools 4 Hack
  84. Hacking Tools For Beginners
  85. Nsa Hacker Tools
  86. Hacking App
  87. Hak5 Tools
  88. Pentest Tools Bluekeep
  89. Hack Tools Online
  90. Hacker Tools 2019
  91. Hack Tools
  92. Tools For Hacker
  93. Pentest Tools Android