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
| crackerman@gpucracker:/etc/systemd/system$ foreman export systemd ~/services | |
| # see http://stackoverflow.com/questions/33318107/how-do-i-start-foreman-server-on-background-on-production | |
| crackerman@gpucracker:/etc/systemd/system$ mv ~/services/* /etc/systemd/system | |
| crackerman@gpucracker:/etc/systemd/system$ find . -type f -name "app*.service" -print0 | xargs -0 -I % sh -c 'printf "\n\n"; echo %; cat %' | |
| ./app-redis@.service | |
| [Unit] |
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
| root@kali:~/packages$ tail /root/live-build-config/build.log | |
| P: Begin installing packages (install pass)... | |
| Reading package lists... | |
| Building dependency tree... | |
| Reading state information... | |
| E: Unable to locate package Nessus | |
| P: Begin unmounting filesystems... | |
| P: Saving caches... | |
| Reading package lists... | |
| Building dependency tree... |
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
| root@kali:~$ cat /etc/systemd/system/vpn.service | |
| [Unit] | |
| Description=Start/stop VPN connection | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/bin/bash -c "/root/vpn.sh start" | |
| ExecStop=/bin/bash -c "/root/vpn.sh stop" | |
| RemainAfterExit=yes |
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
| #generate file containing video IDs | |
| for i in {1051..1069}; do echo $i >> ids; done | |
| #or | |
| grep -oP "video\?id=\d{2,3}" tmp | sort -u | uniq | cut -d "=" -f 2 > ids | |
| #get videos | |
| for id in $(cat ids); do | |
| wget --trust-server-names=on --no-clobber --header="User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0" \ | |
| --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \ | |
| --header="Accept-Language: en-US,en;q=0.5" \ |
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/sh | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "Run as root!" 1>&2 | |
| exit 1 | |
| fi | |
| path=/etc/openvpn/pia-configs | |
| locations=$(ls $path/*.ovpn | cut -d "/" -f 5) |
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
| file = open('title-cve.txt', 'r') | |
| output = open('title-cve-out.txt', 'w') | |
| for line in file: | |
| tmp = line.split('|') | |
| title = tmp[0] | |
| cvelist = tmp[1].split(',') | |
| for cve in cvelist: | |
| output.write(tmp[0] + '|' + cve + '\n') |
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
| wget --spider --force-html -r -l2 $url 2>&1 \ | |
| | grep '^--' | awk '{ print $3 }' \ | |
| | grep -v '\.\(css\|js\|png\|gif\|jpg\)$' |
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
| function Copy-AuthenticodeSignedFile { | |
| <# | |
| .SYNOPSIS | |
| Creates a copy of an Authenticode-signed PowerShell file that has a unique file hash but retains its valid signature. | |
| .DESCRIPTION | |
| Copy-AuthenticodeSignedFile creates a copy of an Authenticode-signed PowerShell file that has a unique file hash but retains its valid signature. This is used to bypass application whitelisting hash-based blacklist rules. |
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"?> | |
| <SiPolicy xmlns="urn:schemas-microsoft-com:sipolicy"> | |
| <VersionEx>10.0.0.0</VersionEx> | |
| <PolicyTypeID>{A244370E-44C9-4C06-B551-F6016E563076}</PolicyTypeID> | |
| <PlatformID>{2E07F7E4-194C-4D20-B7C9-6F44A6C5A234}</PlatformID> | |
| <Rules> | |
| <Rule> | |
| <Option>Enabled:Unsigned System Integrity Policy</Option> | |
| </Rule> | |
| <Rule> |
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
| Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE | |
| strComputer = "." | |
| strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit" | |
| Set objLocator = CreateObject("WbemScripting.SWbemLocator") | |
| Set objReg = objLocator.ConnectServer(strComputer, "root\cimv2").Get("StdRegProv") | |
| objReg.EnumKey HKLM, strKey, arrSubKeys | |
| objReg.GetDWORDValue HKLM, strkey, "ProcessCreationIncludeCmdLine_Enabled", isenabled | |
| If IsNull(isenabled) Then |
OlderNewer