Skip to content

Instantly share code, notes, and snippets.

View hiroto-takatoshi's full-sized avatar
🇯🇵

Hiroto.Takatoshi hiroto-takatoshi

🇯🇵
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hiroto-takatoshi
hiroto-takatoshi / gtav_stocks.rb
Created March 30, 2017 18:28 — forked from edwardloveall/gtav_stocks.rb
Get stocks for the GTA V BAWSAQ
require 'net/http'
require 'json'
def request
Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq'))
uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail')
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Get.new(uri)
@hiroto-takatoshi
hiroto-takatoshi / ss-packets.md
Created March 17, 2017 01:12
ss与ssr的收发包记录

格式说明

twitter.com:443 u 23 517 d 154 u 51 53 98 809 d 44
从左向右看
首先twitter.com:443表示访问twitter.com的443端口,即https
上传方向(以字母u表示),先发送23字节,再发517字节,
然后下载方向(以字母d表示),收到154字节,
接着上传方向再上传51、53、98、809字节,
最后下载方向收到44字节后,连接断开。
一行内容即为一次连接的记录