Interacting with Common Services
To attack a service effectively:
Understand its purpose and functionality.
Learn how to interact with it.
Identify tools available for use.
Explore potential actions and vulnerabilities.
File Sharing Services
Definition: Services enabling the transfer of computer files, either internally or via cloud solutions.
Common Internal Services: SMB, NFS, FTP, TFTP, SFTP.
Cloud Examples: Dropbox, Google Drive, AWS S3, Azure Blob Storage.
Server Message Block (SMB)
Purpose: Widely used in Windows networks for sharing folders. Interaction Methods: GUI, CLI, or tools.
Windows (SMB)
GUI Interaction:
Open
Run
(WINKEY + R
) and type\\<server>\<share>
.Access granted if authentication is valid or anonymous access is allowed.
Command Shell:
List Files in Shared Folder:
Map Shared Folder to Drive:
Authenticate with Credentials:
Search Within Files:
PowerShell:
Map Shared Folder:
Map with Credentials:
Search Files:
Linux (SMB)
Mount SMB Share:
Use Credentials File:
Credentials File Format:
Search Files:
Other Services
Email Protocols
Sending: SMTP.
Receiving: POP3, IMAP.
Mail Client Example: Evolution (
sudo apt-get install evolution
).
Databases
Types: MySQL, MSSQL.
Interaction Methods:
Command Line (
mysql
,sqsh
,sqlcmd
).GUI Tools (
MySQL Workbench
,SSMS
,dbeaver
).Scripting Languages.
Examples:
MSSQL:
MySQL:
Useful Tools for Common Services
Service
Tools
SMB
smbclient, CrackMapExec, SMBMap, Impacket
FTP
ftp, lftp, ncftp, filezilla
Thunderbird, Geary, MailSpring
Databases
mssql-cli, mycli, dbeaver
General Troubleshooting
Common Issues:
Authentication or privilege errors.
Network connectivity or firewall restrictions.
Missing protocol support.
Use error codes and documentation/forums for debugging.