This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#----------AUTHOR------------ | |
# Jacob Salmela | |
# 9 April 2013 | |
#---------DESCRIPTION-------- | |
# Serves up an unencrypted, reverse-shell when the -e option is unavailable | |
# Much less reliable (command lag), but useful in a pinch | |
#----------FUNCTIONS--------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------VARIABLES-------- | |
# API credentials | |
clientID="" | |
clientSecret="" | |
redirectURI="" | |
# OAuth tokens and codes | |
authorizationCode="" | |
# Once you have these two tokens, the script can run automatically. | |
accessToken="" | |
refreshToken="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change 60 to however many passwords you have to authenticate for | |
for s in {1..60} | |
do | |
sleep 1 | |
# Enter your password below | |
osascript -e <<EOF 'tell application "System Events" | |
tell process "SecurityAgent" | |
set value of text field 1 of window 1 to "password" | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>RollYourOwn.MalwareDetection.Yosemite</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/malwaredetection.sh</string> | |
</array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e 'tell application "System Events" | |
keystroke "username" | |
keystroke tab | |
keystroke "password" | |
keystroke return | |
keystroke return | |
end tell' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open sample test site | |
killall Safari > /dev/null | |
osascript -e 'tell application "Safari" | |
activate | |
set the URL of the front document to "http://testnav.com/mnqc" | |
end tell' |