Note:
<example>
is meant to denote text replaced by you (including brackets).
// global dependencies
npm install -g knex
#!/usr/bin/env ruby | |
require 'benchmark' | |
Benchmark.bm do |b| | |
n = 1_000_000 | |
value1 = 1 | |
value2 = nil |
#!/usr/bin/env sh | |
# nvm-ls-g | |
# Henry Bley-Vroman | |
# MIT License, 2018 | |
# Lists the globally-installed npm packages | |
# for every nvm-installed version of Node | |
# Usage: |
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.
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
_BUCKET_NAME="foo.example.com" | |
_POLICY=$(cat <<EOT | |
{ | |
"Version":"2012-10-17", | |
"Statement":[{ | |
"Sid":"PublicReadForGetBucketObjects", | |
"Effect":"Allow", | |
"Principal": "*", | |
"Action":["s3:GetObject"], |
logs/* |
package main | |
import ( | |
"fmt" | |
"errors" | |
) | |
type Maybe interface { | |
Return(value interface{}) Maybe | |
Bind(func(interface{}) Maybe) Maybe |
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
) | |
func init() { |
var express = require('express'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
// chrome sends application/csp-report | |
// firefox sends application/json | |
// it seems chrome is doing it well: https://w3c.github.io/webappsec/specs/content-security-policy/ | |
app.use(bodyParser.json({ | |
type: ['json', 'application/csp-report'] | |
})); |
var child_process = require('child_process'); | |
function install(modules, callback) { | |
if (modules.length == 0) { | |
if (callback) callback(null); | |
return; | |
} | |
var module = modules.shift(); | |
child_process.exec( | |
'npm install ' + module, |