Skip to content

Instantly share code, notes, and snippets.

@seven0525
seven0525 / inject.py
Created Mar 20, 2019 — forked from leonjza/inject.py
Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
View inject.py
# 2017 - @leonjza
#
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
# Usage example:
#
# List available posts:
#
# $ python inject.py http://localhost:8070/
@leonjza
leonjza / inject.py
Last active Mar 20, 2019
Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
View inject.py
# 2017 - @leonjza
#
# Wordpress 4.7.0/4.7.1 Unauthenticated Content Injection PoC
# Full bug description: https://blog.sucuri.net/2017/02/content-injection-vulnerability-wordpress-rest-api.html
# Usage example:
#
# List available posts:
#
# $ python inject.py http://localhost:8070/
View .gitconfig
[user]
name = Clark
[alias]
a = add
aa = add -- .
b = branch
br = branch -vva
c = commit -m
ca = commit -a -m
cm = commit --amend
View funcy-2.go
...
signingSecret, present := fdkCtx.Config()["SLACK_SIGNING_SECRET"]
if !present {
fmt.Println("please set SLACK_SIGNING_SECRET configuration in your app")
return
}
slackTimestamp := fdkCtx.Header().Get("X-Slack-Request-Timestamp")
b, err := ioutil.ReadAll(in)
@Indexyz
Indexyz / history.json
Last active Mar 20, 2019
XiaomiKernel
View history.json
["README","armani-jb-oss","armani-kk-oss","cactus-o-oss","cancro-kk-oss","cancro-m-oss","cappu-n-oss","cepheus-p-oss","clover-o-oss","daisy-o-oss","daisy-p-oss","dior-kk-oss","dipper-o-oss","dipper-p-oss","ferrari-l-oss","gemini-m-oss","grus-p-oss","gucci-kk-oss","hennessy-l-oss","hydrogen-m-oss","ido-l-oss","jasmine-o-oss","jasmine-p-oss","jason-n-oss","kenzo-l-oss","land-m-oss","latte-l-oss","lavender-p-oss","libra-l-oss","libra-n-oss"]
@eamaccready
eamaccready / JSReview-UdacityIntroJSChap6
Last active Mar 20, 2019
Snippets from chapter 6 quizzes
View JSReview-UdacityIntroJSChap6
# Snippets from chapter 6 quizzes
View openpanzer-save.json
{"scenario":{"name":"Operation Marita","maxTurns":24,"date":"1941-04-09T05:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{"4":[{"row":3,"col":33,"unit":{"eqid":796,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":4,"flag":24,"destroyed":false,"player":null,"transport":{"eqid":802,"ammo":0,"fuel":0,"icon":"resources/units/images/td65.png"},"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":57,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"4","id":1},{"row":5,"col":31,"unit":{"eqid":1875,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":4,"flag":24,"destroyed":false,"player":null,"transport":{"eqid
@acenturyandabit
acenturyandabit / smartloop.py
Created Mar 20, 2019
python smart audio looper
View smartloop.py
#!/usr/bin/env python
import os
import librosa
import random
import pyaudio
import numpy as np
import time
p = pyaudio.PyAudio()
# Open stream with correct settings
@bboyho
bboyho / primary_sec_tertiary.ino
Created Mar 20, 2019
color mixing tests with two 180Ohm and one 100Ohm resistor
View primary_sec_tertiary.ino
#include <SoftwareSerial.h>
SoftwareSerial xbee(2, 3); //Rx = 2, Tx = 3
//Declare variables and pin definitions
//SEND Button
const int button1Pin = 4; //push button
const int ledPin1 = 13; //LED on the push button
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.