Data Exfiltration Via Text Storage

Search for a command to run...

No comments yet. Be the first to comment.
Introduction - In today's world of computers and the internet, keeping important information safe and making sure no one can access your data are really important for companies. One big part of making sure everything is secure is protecting the way y...
AngularJS sandbox escape
![[EXPERT] Reflected XSS with AngularJS sandbox escape without strings](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fuploads%2Fcovers%2F66f6453769132feb8ba076b0%2F111ea636-bcfe-491b-b495-b6549d0ebcfe.png&w=3840&q=75)
BreachForce June 2026 Meetup Highlights

HackTheBox Mumbai - May Meetup

BreachForce Meetup May - Security Automation and Malware Research

Disclaimer ⚠️ Where the Scheduler whispers, processes tremble — for it decides who runs… and who fades into starvation. The following content ventures into the ticking heart of the OS — where time slices are bargained, queues grow restless, and sched...
![Lecture 4 - Rediscovering Process Scheduling [Part - 1]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1765604682888%2F80e6cf20-aded-4aac-8c75-affdd35615b2.jpeg&w=3840&q=75)
During red team activities, there may be instances where you encounter limitations on downloading and uploading from your laptop due to the presence of web proxies and Data Loss Prevention (DLP) measures.
At times, DLP systems may identify the transmission of PII data in clear text; hence, encoding the data in Base64 before posting can help avoid detection.
Reference: T1567.003 - Exfiltration Over Web Service: Exfiltration to Text Storage Sites
pastebin[.]com, is commonly used by developers to share code and other information.Text storage sites are often used to host malicious code for C2 communication (e.g., Stage Capabilities), but adversaries may also use these sites to exfiltrate collected data. Furthermore, paid features and encryption options may allow adversaries to conceal and store data more securely. (Citation: Pastebin EchoSec)
Pre-requisites for this activity
PowerShell
The objective is to bypass restrictions to identify websites on restricted devices where text can be stored, such as Medium, GitLab, GitHub, or any platform allowing comments or text posting.
Refer This: https://lots-project.com/
Upon identifying such a website, we can proceed to extract or introduce data in text format, either by exfiltrating or infiltrating files or documents from the restricted device.
To encode data in PowerShell and encode it in Base64 format, use the following commands:


# Specify the path to the file you want to convert
$filePath = "C:\Path\To\Your\File.txt"
# Read the file content
$fileContent = Get-Content -Path $filePath -Encoding Byte
# Convert to Base64
$base64String = [Convert]::ToBase64String($fileContent)
# Output the Base64 string
$base64String
Post or comment on this base64 data as text where you found the text storage

Get the text data in your system and Decrypt the data.




Data exfiltration without file uploads renders DLP incapable of detecting the activity since no files are being uploaded.