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
| --- | |
| - :hostname: webserver | |
| :ip: 10.1.1.1 | |
| :opts: | |
| :services: | |
| - :http | |
| - :proxy | |
| :proxy_port: 81 | |
| :path_to_important_files: C:/important | |
| :path_to_vbs_scripts: C:/vbs |
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
| msf exploit(psexec) > set RHOST 1.1.1.1;set LHOST 1.1.1.2 | |
| RHOST => 1.1.1.1 | |
| LHOST => 1.1.1.2 | |
| msf exploit(psexec) > show options | |
| Module options (exploit/windows/smb/psexec): | |
| Name Current Setting Required Description | |
| ---- --------------- -------- ----------- | |
| RHOST 1.1.1.1 yes The target address |
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
| * ESXi server | |
| - Case: Shuttle SH67H3 Intel Core i7 / i5 / i3 (LGA1155) Intel Socket H2(LGA1155) Intel H67 Intel HD Graphics 2000/3000 integrated in the processor 1 x HDMI XPC Barebone | |
| - $229 Paid | |
| - $239 Last I checked | |
| - http://www.newegg.com/Product/Product.aspx?Item=N82E16856101117 | |
| - CPU: Intel Core i3-3225 Ivy Bridge 3.3GHz LGA 1155 55W Dual-Core Desktop Processor Intel HD Graphics 4000 BX80637I33225 (has less cores than the previous CPU, which is now in the NAS, but onboard GPU frees up one of only 2 PCIe slots for more NICs) (was too cheap to pay for an i5/7) | |
| - NOTES: I highly recommend an i3/5/7 due to onboard gpu | |
| - $210 Paid | |
| - $205 Last I checked | |
| - http://www.newegg.com/Product/Product.aspx?Item=N82E16819115084 |
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 | |
| # This script tries to be posix compliant, so no bash'isms | |
| # This script assumes you have an existing repo, the dir for which is your pwd, such as one created with | |
| # git clone https://github.com/kernelsmith/metasploit-framework.git | |
| # The script will create a local branch for each remote branch (origin only) and update the local branch to match the remote | |
| # Usage: | |
| # $0 [-d] [-f grep_filter] | |
| # -d dryrun,just shows you what would happen but doesn't do anything |
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
| * New Indentation Rules | |
| https://github.com/rapid7/metasploit-framework/wiki/Indentation-Standards | |
| * Pick up a defunct submitter's change | |
| someone else could pick up the change while committing like so: | |
| git merge --no-ff upstream/pr/2212 | |
| git merge --no-ff dmaloney-r7/pr/8 | |
| (assuming you added @dmaloney-r7's branch as a remote) | |
| Doing so will tend to violate two-person code review practices when |
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
| # | |
| # One-liners (or one'ish-liners) | |
| # | |
| pry(main)> Psych::VERSION | |
| => "3.1.0" | |
| pry(main)> show-source Psych | |
| => # lots of code | |
| pry(main)> show-method meth_name | |
| # From: /home/some_code.rb:233: |
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
| claymore | |
| Cleveland Brown (hint, great uniforms, terrible helmet) |
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
| // Minimum supported client:Windows 2000 Professional | |
| // Minimum supported server:Windows 2000 Server | |
| // Header:Wininet.h | |
| // Library:Wininet.lib | |
| // DLL:Wininet.dll | |
| // Unicode and ANSI names:HttpSendRequestW (Unicode) and HttpSendRequestA (ANSI) | |
| // http://msdn.microsoft.com/en-us/library/windows/desktop/aa384247(v=vs.85).aspx | |
| typedef BOOL (WINAPI * PHTTPSENDREQUESTA)( | |
| HINTERNET hRequest, | |
| LPCSTR lpszHeaders, |
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
| # Note, the local keyword is not strictly posix compliant but supported in | |
| # most shells. You can remove them w/o affecting the scripts except those | |
| # variables will still be in scope outside the function, which can cause some | |
| # info leakage unless you clear them (and you'd want to also trap so they'd be | |
| # cleared when the script is interrupted with something like ctl-c etc) | |
| prox="http://proxy.check:8080" | |
| alias proxyon="export http_proxy=$prox && export https_proxy=$prox" | |
| alias proxyoff='unset http_proxy && unset https_proxy' |
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
| [user] | |
| uname = ks | |
| [alias] | |
| branch-current = rev-parse --abbrev-ref HEAD | |
| # Usage: git pr-url HISNAME HISBRANCH | |
| # Example: git pr-url rapid7 master | |
| # Example: git pr-url OJ feature/cool_feature_that_also_fixes_bugs | |
| pr-url =!"xdg-open https://github.com/$(git config user.uname)/$(basename $(git rev-parse --show-toplevel))/pull/new/$1:$2...$(git branch-current) #" | |
| # OSX. Use whatever browser you use | |
| #pr-url =!"open -a \"Google Chrome\" https://github.com/$(git config user.uname)/$(basename $(git rev-parse --show-toplevel))/pull/new/$1:$2...$(git branch-current) #" |