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/bash | |
############################### | |
# Case statement shell script | |
# Author iamramahibrah | |
############################### | |
echo -e -n " | |
Choose one scripting language below | |
=============== |
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
import os | |
hostname = "8.8.8.8" | |
for ip in hostname: | |
response = os.system("ping -c1 >/dev/null "+ hostname) | |
if response == 0: | |
print("Connected") | |
else: | |
print("Disconnected") |
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
import pyshark | |
def cap(pkt): | |
capture = pyshark.FileCapture("Pcap file location here", dispaly_filter="tcp") | |
for i in capture: | |
print(i.tcp) | |
cap() |
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
#!/bin/bash | |
# vmware c header file matching error solution | |
# update system to current version | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install buld essential | |
sudo apt-get install build-essential -y |
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
[Interface] | |
Address = 192.168.168.1/24 # IPV4 CIDR | |
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | |
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE | |
PrivateKey = sGEPcI+wbFvwq8YwiHluREFbGXa9QzRsfrA8pyLb81A= | |
ListenPort = 51820 | |
[Peer] | |
PublicKey = B1Oyq4HertWCcK8YBWETfoHICnFN4+tCfyouxsdhWhs= # Client public key | |
AllowedIPs = 10.10.0.2/32, fd86:ea04:1111::2/128 # IPs client can connect as |
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
def int(): | |
import netifaces | |
interface = netifaces.gateways()['default'][netifaces.AF_INET] | |
print("===[Network Information]===") | |
print ("==>", *interface) | |
int() |
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
#!/bin/bash | |
#===================================== | |
# OPEN SSH SERVER UPGRADE SCRIPT | |
#===================================== | |
function colors() | |
{ | |
RED="\033[1;31m" | |
GREEN="\033[1;32m" |
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
#!/bin/bash | |
#********************************* | |
# Ramadhan ibrahim (https://ramadhanibrahim.com/) | |
# Licensed - https://unlicense.org/ | |
# Social Media: @iamramahibrah | |
# Fixes a corrupt .zsh_history file | |
#********************************** | |
function zsh() |
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
Key Sublime Text 3.2.1 Build 3207 | |
----- BEGIN LICENSE ----- | |
Member J2TeaM | |
Single User License | |
EA7E-1011316 | |
D7DA350E 1B8B0760 972F8B60 F3E64036 | |
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD | |
FA0A2ABE 25F65BD8 D51458E5 3923CE80 | |
87428428 79079A01 AA69F319 A1AF29A4 | |
A684C2DC 0B1583D4 19CBD290 217618CD |
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
import platform, getpass, socket | |
import os | |
#os func | |
os.system('clear') | |
def os(): | |
print("*********System Information**********") | |
node = platform.node() | |
os = platform.system() |
NewerOlder