InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Follow publication

Alternate Data Streams (ADS)

XOR-Hacks
InfoSec Write-ups
Published in
7 min readAug 20, 2020

So what are Alternate Data Streams (ADS) ?

How does it work and why should I care about it ?

Secret.txt Notepad

But what if there is more data in the file that you aren’t aware of ?

dir
command prompt “dir”
dir /r
Command prompt dir /r
# First Command
dir
# Second Command
dir /r
Command Prompt dir and dir /r
# View secret.txt
type secret.txt
# View Alternate Data Stream
more < secret.txt:evil.txt
# Creating a basic .txt file
echo <YOUR TEXT> > filename.txt
# Creating an Alternative Data Stream 
echo <YOUR DATA> > filename.txt:streamname.txt
Command Prompt evil.exe
Old method
forfiles /P C:\Windows\System32 /m calc.exe /c "C:\Users\admin\Desktop\calc.exe:evil.exe"
Alternate method

Summary

Resources

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

No responses yet

Write a response