Skip to content

Instantly share code, notes, and snippets.

View KINGSABRI's full-sized avatar
♠️

KING SABRI KINGSABRI

♠️
View GitHub Profile
#!/usr/bin/ruby
###################################################################
#### " _ _ _ _ ___ _ _ _ " ####
#### " | \| (_)_ _ (_)__ _ | __(_)_ _ _____ __ ____ _| | | " ####
#### " | .` | | ' \ | / _` | | _|| | '_/ -_) V V / _` | | | " ####
#### " |_|\_|_|_||_|/ \__,_| |_| |_|_| \___|\_/\_/\__,_|_|_| " ####
#### " |__/ " ####
###################################################################
#### Coded by: Sabry Saleh ####
#### Last update: ####
@KINGSABRI
KINGSABRI / OK-Client.rb
Created April 14, 2012 19:57
OK Client
require 'socket'
require 'logger'
# OK Client
def logger
# Creat Log file with rotation
@KINGSABRI
KINGSABRI / OK-server.rb
Created April 14, 2012 20:00
OK Server
#!/usr/bin/ruby
# OK Server
#
require 'rubygems'
require 'socket'
server = TCPServer.open(2000)
loop {
client = server.accept
client.puts "OK"
@KINGSABRI
KINGSABRI / ability-STOR6.rb
Created April 14, 2012 20:17
ability STOR
#!/bin/ruby
require 'colorize'
require 'socket'
mark_Red = "[+]".red
mark_Green = "[+]".green
mark_yellow = "[+]".yellow
##################################
@KINGSABRI
KINGSABRI / hex2bin-v1.5.rb
Created April 14, 2012 20:20
Hex to Binary file
#!/bin/ruby
#########################
# Bin2Hex v1.5
# Coded by: KING SABRI
#########################
# gem install colorize
require 'colorize'
require 'optparse'
$mark_Red = "[+]".red
##################################
@KINGSABRI
KINGSABRI / Password.rb
Created April 14, 2012 20:20
Password Shadow
#!/bin/ruby
# PGP-Cryptor to PGP files
#
# ☉★
#
require 'highline/import'
require 'colorize'
mark_Red = "[+]".red
@KINGSABRI
KINGSABRI / LinuxHWScanner.rb
Created April 14, 2012 20:22
Linux Hardware Scaner
#~~~~~~~~~~~~~~~~~~~~~~~
# Linux HW Scanner is a simple script to catch all Hardware Specifications from list of servers
# Coded by : Sabry Saleh
# License : GPL2
#~~~~~~~~~~~~~~~~~~~~~~~
#=-Notes-=
# You have to install ruby + net-ssh gems
# sudo gem install net-ssh
# sudo gem install net-ssh-shell
#~~~~~~~~~~~~~~~~~~~~~~~
@KINGSABRI
KINGSABRI / Swith-hash-v2.rb
Last active December 23, 2021 15:28
Switch-hash v2
#!/usr/bin/ruby
gems = %w{rubygems colorize socket net/ssh net/scp logger} ; gems.each { |gem| require gem }
class Type
attr_accessor :name , :cmd
def initialize(name, cmd)
@name = name
@cmd = cmd
@KINGSABRI
KINGSABRI / Switch-hashv3.rb
Created April 17, 2012 09:55
Switch-hash v3 with Connect
#!/usr/bin/ruby
gems = %w{rubygems colorize logger} ; gems.each { |gem| require gem }
load 'Connect.rb'
logger = Logger.new('logs/ninjaFW.log', 10, 1024000) # Filename: ninjaFW.log , Number of rotation: 10 , Rotation Size= 125MB
#--> Supported Switches
HP = "hp"
HU = "Huawei"
@KINGSABRI
KINGSABRI / Switchs-session.rb
Created April 24, 2012 15:35
Switch-sessions
#!/usr/bin/ruby
##
## just to test remote cmds on the switches
##
#
# gem install net-scp colorize net-ssh net-scp logger
#
require 'rubygems'
require 'colorize'