File: socksify_ruby

package info (click to toggle)
ruby-socksify 1.7.1%2Bgh-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 148 kB
  • sloc: ruby: 618; sh: 10; makefile: 3
file content (18 lines) | stat: -rwxr-xr-x 295 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby

if ARGV.size < 2
  puts "Usage: #{$0} <SOCKS host> <SOCKS port> [script args ...]"
  exit
end

require 'socksify'

TCPSocket.socks_server = ARGV.shift
TCPSocket.socks_port = ARGV.shift.to_i
if ARGV.size >= 1
  load ARGV.shift
else
  require 'irb'
  IRB.start(__FILE__)
end