Skip to content

Instantly share code, notes, and snippets.

View mejszin's full-sized avatar
🖤

Louis Machin mejszin

🖤
View GitHub Profile
@KINGSABRI
KINGSABRI / syn-poc.rb
Created June 8, 2012 20:31
Build TCP/IP packet from scratch by ruby , and send syn(or whatever you want) packet
#!/usr/bin/env ruby
# Full Contol on Ethnet, IP & TCP headers. Play with it ;)
# to test it: nc -lvp 4444
# as root: tcpdump -nvvvv 'tcp port 4444' -i wlan0 # change wlan0 to your interface
# or use packetfu to monitor as tcpdump
## cap = PacketFu::Capture.new(:iface => 'wlan0' , :promisc=> true)
## cap.show_live(:filter => 'tcp and port 4444')
# libpcap should be installed
# gem install pcaprub packetfu
@clicube
clicube / eventhandler.rb
Created June 13, 2012 06:59
Event Handler for ruby
# coding: utf-8
class EventHandler
def initialize
@methods = []
end
def add(method)
if !@methods.include?(method)
@bikcrum
bikcrum / Connect Google Colab+Drive with SSH.ipynb
Last active July 5, 2024 11:41
This is the way how can you connect google colab as well as google drive (mounted) using SSH. This is useful when you want to download data directly to your google drive specially for machine learning purpose. It can be easy to mount google drive and use files into for your code.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.