Skip to content

Instantly share code, notes, and snippets.

View masterT's full-sized avatar

Simon Thiboutôt masterT

View GitHub Profile
@masterT
masterT / README.md
Created December 27, 2021 16:02
RequestForgeryProtection for ActionController::API

Configure ActionController::RequestForgeryProtection for an ApplicationController that does not inherits from ActionController::Base (or any controller that does not include ActionController::RequestForgeryProtection).

This is required since the module is included after the application is loaded, so it does not get configured automatically by the configuration files config/environments/*.rb.

@masterT
masterT / response.html
Created September 22, 2021 10:14
Koel download song error
<!-- Unsupported download type. (500 Internal Server Error) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Unsupported download type. (500 Internal Server Error)</title>
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAADVUlEQVRIx82XX0jTURTHLYPyqZdefQx66CEo80+aYpoIkqzUikz6Z5klQoWUWYRIJYEUGpQ+lIr9U5dOTLdCtkmWZis3rbnC5fw/neYW002307mX/cZvP3/7o1PwwOdh95x7vnf39zvnd29AgBer2xO6DclAXiMqZAqxIiNIN/IYSUS2BPhjmGATchUxI+ADWiRhpWK7HKuHFVBFdmU5YvnI4grFGCaReF/EBH4KsZlGgj2JBTuCYBWRIYF8YoEOJ6wBt/gEs7mBbyOjQXruPLSdOgPCiEiPSUUHDoL8Ug5IUo9B/d5wrt+G7OAKNrODPuVdB6vRCIzN6SdBlpW9RIgk/1FeAXabzRlrUPVCS/JhbmwudztnGeeH9AyXBIwtmM3wLinZJZHifjHw2V+NBoRh+9ixQrbgbnaSIcl7cGea6hoXQbNe7za241oeO5Z0p42M4BV2EqP2D50wo+6HzvwC6C4sApNOR8cmOrtcnhtj2kYRyC9eBvXzKrBZrXSs72kFd1t3MoKVbMekQkEnSNKOO8fac3LpmK6l1Tl
@masterT
masterT / keybase.md
Created May 21, 2020 01:41
keybase.md

Keybase proof

I hereby claim:

  • I am mastert on github.
  • I am lilc4t (https://keybase.io/lilc4t) on keybase.
  • I have a public key ASByBSMHz-otsvW5oSCe_O6BEq_-79Y9wME-s_BO_g81wgo

To claim this, I am signing this object:

@masterT
masterT / cancelable-promise.js
Created May 16, 2018 21:38
Cancelable Promise
export class CanceledError extends Error {
constructor (promise) {
super()
if (Error.captureStackTrace) {
Error.captureStackTrace(this, CanceledError)
}
this.promise = promise
this.isCanceled = true
@masterT
masterT / .travis.yml
Created January 23, 2018 15:14 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@masterT
masterT / challenge-template.md
Last active June 10, 2017 04:16
CTF Tactics

Challenge {name}

{url}

{description}

Backend

  • Server: {server, version}
  • Language: {language, version}
@masterT
masterT / Quang Ngai.md
Last active June 10, 2017 04:19
CTF WhiteHat 2017

Quang Ngai

You have a data file.

$ file data
data: data
alert("hacked");
@masterT
masterT / solution.md
Last active February 2, 2017 01:05
Solution pour la SQLi Are You Rich (HITCON CTF)

52.197.140.254/are_you_rich/verify.php (maintenant indisponible)

En premier il fallait trouver que le chmap était injectable.

Avec des requêtes du genre:

blahblahblahblah' OR 1 = 1 --
@masterT
masterT / README.md
Last active July 14, 2016 20:16
Install vsftpd 3.0.2 on Ubuntu 14.04.3