Skip to content

Instantly share code, notes, and snippets.

@jmingov
jmingov / Users.php
Last active Jul 3, 2020
CI4 VALIDATION BUG
View Users.php
<?php
namespace App\Controllers;
use CodeIgniter\Controller;
use Config\Services;
class Users extends Controller
{
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
@jmingov
jmingov / Session.php
Created May 13, 2020 — forked from Nilpo/Session.php
A simple session wrapper class to provide static OOP access to PHP sessions.
View Session.php
<?php
/**
* Session Helper Class
*
* A simple session wrapper class.
*
* Recommended for use with PHP 5.4.0 or higher. (Not required.)
*
* Usage Example:
View ppwt2.go
package main
import (
"fmt"
"log"
"math/rand"
"time"
)
type Threader struct {
View ppwt2.go
package main
import (
"log"
"math/rand"
"time"
)
type Threader struct {
TIME_LIMIT time.Time
View ppwt.go
package main
import (
"log"
"math/rand"
"time"
)
const TIME_LIMIT = time.Second
@jmingov
jmingov / github_bugbountyhunting.md
Created Oct 8, 2017 — forked from EdOverflow/github_bugbountyhunting.md
My tips for finding security issues in GitHub projects.
View github_bugbountyhunting.md

GitHub for Bug Bounty Hunters

GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.

Mass Cloning

You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.

$ python githubcloner.py --org organization -o /tmp/output
View keybase.md

Keybase proof

I hereby claim:

  • I am jmingov on github.
  • I am jmingov (https://keybase.io/jmingov) on keybase.
  • I have a public key ASAxR_iU1Is4AVZAqUAAhtCEzjiWePkYXMcoTKlwODVwNAo

To claim this, I am signing this object:

@jmingov
jmingov / setupenv
Created Aug 18, 2017 — forked from nethunteros/setupenv
Easily select toolchain between 64bit and 32 bit kernel builds for Android
View setupenv
#/bin/bash
#
# Download toolschains:
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7 toolchain
# git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b marshmallow-release toolchain64
#
# Instructions to set toolchain for build:
# source setupenv 64
case "$1" in
@jmingov
jmingov / golang_on_rpi.md
Last active Mar 22, 2019 — forked from konradko/golang_on_rpi.md
Install Golang 1.8.1 on Raspberry Pi
View golang_on_rpi.md
wget https://storage.googleapis.com/golang/go1.8.1.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.1.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
wget https://nodejs.org/dist/v7.10.0/node-v7.10.0-linux-armv7l.tar.xz 
tar -xvf node-v7.10.0-linux-armv7l.tar.xz
cd node-v7.10.0-linux-armv7l
@jmingov
jmingov / linux.sh
Created Jan 10, 2017 — forked from marcan/linux.sh
Linux kernel initialization, translated to bash
View linux.sh
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name