SMB Exploit Tutorial in Hindi | Network Services | Server Message Block Protocol

Pubblicato il: 13 ottobre 2022
sul canale di: PentestHint - The Tech Fellow
5,741
84

#SMB #exploit #networksecurity #pentesthint #chandanghodela

🚀 Join Our Discord Community!
Be a part of our exclusive community for discussions, Q&A, and networking with like-minded enthusiasts!

👉 Click here to join:   / discord  

Categories we cover:
🎥 Video Discussions – Share your thoughts and ideas!
💡 On-Demand Discussions – Get help and share knowledge in real-time.
💼 Job Opportunities – Explore career opportunities and tips.

Let’s grow and learn together!

What is SMB?

SMB - Server Message Block Protocol - is a client-server communication protocol used for sharing access to files, printers, serial ports and other resources on a network. [source]

Servers make file systems and other resources (printers, named pipes, APIs) available to clients on the network. Client computers may have their own hard disks, but they also want access to the shared file systems and printers on the servers.

The SMB protocol is known as a response-request protocol, meaning that it transmits multiple messages between the client and server to establish a connection. Clients connect to servers using TCP/IP (actually NetBIOS over TCP/IP as specified in RFC1001 and RFC1002), NetBEUI or IPX/SPX.

Once they have established a connection, clients can then send commands (SMBs) to the server that allow them to access shares, open files, read and write files, and generally do all the sort of things that you want to do with a file system. However, in the case of SMB, these things are done over the network.

What runs SMB?

Microsoft Windows operating systems since Windows 95 have included client and server SMB protocol support. Samba, an open source server that supports the SMB protocol, was released for Unix systems.

Enumeration

Enumeration is the process of gathering information on a target in order to find potential attack vectors and aid in exploitation.

This process is essential for an attack to be successful, as wasting time with exploits that either don't work or can crash the system can be a waste of energy. Enumeration can be used to gather usernames, passwords, network information, hostnames, application data, services, or any other information that may be valuable to an attacker.

SMB

Typically, there are SMB share drives on a server that can be connected to and used to view or transfer files. SMB can often be a great starting point for an attacker looking to discover sensitive information — you'd be surprised what is sometimes included on these shares.


Port Scanning

The first step of enumeration is to conduct a port scan, to find out as much information as you can about the services, applications, structure and operating system of the target machine.

If you haven't already looked at port scanning, I recommend checking out the Nmap room here.

Enum4Linux

Enum4linux is a tool used to enumerate SMB shares on both Windows and Linux systems. It is basically a wrapper around the tools in the Samba package and makes it easy to quickly extract information from the target pertaining to SMB. It's installed by default on Parrot and Kali, however if you need to install it, you can do so from the official github.

The syntax of Enum4Linux is nice and simple: "enum4linux [options] ip"

TAG FUNCTION

-U get userlist
-M get machine list
-N get namelist dump (different from -U and-M)
-S get sharelist
-P get password policy information
-G get group and member list

-a all of the above (full basic enumeration)

Types of SMB Exploit

While there are vulnerabilities such as CVE-2017-7494 that can allow remote code execution by exploiting SMB, you're more likely to encounter a situation where the best way into a system is due to misconfigurations in the system. In this case, we're going to be exploiting anonymous SMB share access- a common misconfiguration that can allow us to gain information that will lead to a shell.

Method Breakdown

So, from our enumeration stage, we know:

The SMB share location

The name of an interesting SMB share


We can remotely access the SMB share using the syntax:

smbclient //[IP]/[SHARE]

Followed by the tags:

-U [name] : to specify the user

-p [port] : to specify the port

______________/Social Media_______________
Instagram:   / chandan.ghodela  
Twitter:   / chandanghodela  
LinkedIn:   / chandan-singh-ghodela  

_____________/Useful Link\___________________
https://tryhackme.com/room/networkser...

#ctf #cybersecurity #hacking #ethicalhacking #hacker #infosec #linux #universit #medicina #chimicaorganica #pentesting #biologia #hack #youtube #facolt #ethical #cyberheroes #security #kalilinux #uae #cyberquad #uaecybersecurity #tryhackme #bountyhacker #hindi #oldisgold #walkthrough #confidential #hackthebox #CaptureTheFlag #oldisgold #hindi #hacker #tryhackmenewbox #nope #THM #HTB #HackTheBox


In questa pagina del sito puoi guardare il video online SMB Exploit Tutorial in Hindi | Network Services | Server Message Block Protocol della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PentestHint - The Tech Fellow 13 ottobre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,741 volte e gli è piaciuto 84 spettatori. Buona visione!