Skip to content

Instantly share code, notes, and snippets.

View islamgab's full-sized avatar

Islam Gaber islamgab

View GitHub Profile
@islamgab
islamgab / Extract multi compressed files.md
Last active April 25, 2022 00:16
Extract multi compressed files

Extract multi compressed files

7z e file
arj e file.arj
bzip2 -d file #Format: 7z 'bzip2, bunzip2, bzcat, bzip2recover' '*.bz2, *.bz, *.tbz2, *.tbz, *.tar, *.bzip2'
cabextract file #Cabinet zip file
cp secret file
gzip -d file.gz #Format: GZip
kgb file # KGB Archiver
@islamgab
islamgab / kali.md
Created October 21, 2019 03:39 — forked from dvdknaap/kali.md
RootTricks

install all tools

  • apt install kali-linux-all

.git folder downloader

  • git clone https://github.com/internetwache/GitTools.git

Check ports with nmap

  • nmap -sC -sV -oA initial 10.10.10.78
  • nmap -sV -sC -oA nmap-tcp 10.10.10.84
  • nmap -T4 -A -v -p 0-10000 10.10.10.8
var codepages = {"cp1257": ["\u0000", "\u0001", "\u0002", "\u0003", "\u0004", "\u0005", "\u0006", "\u0007", "\b", "\t", "\n", "\u000b", "\f", "\r", "\u000e", "\u000f", "\u0010", "\u0011", "\u0012", "\u0013", "\u0014", "\u0015", "\u0016", "\u0017", "\u0018", "\u0019", "\u001a", "\u001b", "\u001c", "\u001d", "\u001e", "\u001f", " ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", "@", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\", "]", "^", "_", "`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "{", "|", "}", "~", "\u007f", "\u20ac", "", "\u201a", "", "\u201e", "\u2026", "\u2020", "\u2021", "", "\u2030", "", "\u2039", "", "\u00a8", "\u02c7", "\u00b8", "", "\u2018", "\u2019", "\u201c", "\u201d", "\u2022", "\u2013", "\u2014", "", "
@islamgab
islamgab / IntroZephJS.md
Created March 23, 2019 12:13 — forked from arei/IntroZephJS.md
Introducing ZephJS!

Introducing ZephJS

We are pleased to announce the release of ZephJS!

ZephJS is an extremely easy to use, simple to understand, ultra-light framework for defining and using Web Components. ZephJS is perfect for people writing component libraries, teams building applications or sites that just require a few custom components, or projects building whole applications that do not want the gigantic weight of a modern JavaScript browser framework. ZephJS simplifies the process of defining custom Web Components into a highly readable declarative structure that uses standard JavaScript, standard HTML markup, and standard CSS styling. And ZephJS weighs in at less than 20k minified!

Here's an example of using ZephJS to build a customized button:

my-button.js
@islamgab
islamgab / SimpleHTTPServerWithUpload.py
Created March 10, 2019 00:25 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@islamgab
islamgab / sitemap_checker.py
Created February 13, 2019 21:57 — forked from ndunn219/sitemap_checker.py
This code shows how to check a sitemap to make sure there are no links pointing to missing pages and to see if 301s are working correctly. It is explained at https://www.webucator.com/blog/2016/05/checking-your-sitemap-for-broken-links-with-python/
import requests
from bs4 import BeautifulSoup
sitemap = 'http://www.nasa.gov/sitemap/sitemap_nasa.html'
r = requests.get(sitemap)
html = r.content
soup = BeautifulSoup(html, 'html.parser')
links = soup.find_all('a')