This file contains 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/ruby | |
################################################################### | |
#### " _ _ _ _ ___ _ _ _ " #### | |
#### " | \| (_)_ _ (_)__ _ | __(_)_ _ _____ __ ____ _| | | " #### | |
#### " | .` | | ' \ | / _` | | _|| | '_/ -_) V V / _` | | | " #### | |
#### " |_|\_|_|_||_|/ \__,_| |_| |_|_| \___|\_/\_/\__,_|_|_| " #### | |
#### " |__/ " #### | |
################################################################### | |
#### Coded by: Sabry Saleh #### | |
#### Last update: #### |
This file contains 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 'socket' | |
require 'logger' | |
# OK Client | |
def logger | |
# Creat Log file with rotation |
This file contains 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/ruby | |
# OK Server | |
# | |
require 'rubygems' | |
require 'socket' | |
server = TCPServer.open(2000) | |
loop { | |
client = server.accept | |
client.puts "OK" |
This file contains 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/ruby | |
require 'colorize' | |
require 'socket' | |
mark_Red = "[+]".red | |
mark_Green = "[+]".green | |
mark_yellow = "[+]".yellow | |
################################## |
This file contains 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/ruby | |
######################### | |
# Bin2Hex v1.5 | |
# Coded by: KING SABRI | |
######################### | |
# gem install colorize | |
require 'colorize' | |
require 'optparse' | |
$mark_Red = "[+]".red | |
################################## |
This file contains 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/ruby | |
# PGP-Cryptor to PGP files | |
# | |
# ☉★ | |
# | |
require 'highline/import' | |
require 'colorize' | |
mark_Red = "[+]".red |
This file contains 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
#~~~~~~~~~~~~~~~~~~~~~~~ | |
# 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 | |
#~~~~~~~~~~~~~~~~~~~~~~~ |
This file contains 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/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 |
This file contains 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/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" |
This file contains 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/ruby | |
## | |
## just to test remote cmds on the switches | |
## | |
# | |
# gem install net-scp colorize net-ssh net-scp logger | |
# | |
require 'rubygems' | |
require 'colorize' |
OlderNewer