sockit 0.0.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env bash
2
+ set -ex
3
+
4
+ sudo apt-get -qy update
5
+ sudo apt-get -qy install wget build-essential libpam0g-dev libbsd-dev libbsd0 libbsd0-dbg libssl-dev libldap2-dev
6
+
7
+ tar -zxvf spec/support/ss5-3.8.9-8.tar.gz
8
+ cd ss5*
9
+ ./configure --with-configfile=/etc/ss5/ss5.conf
10
+ sudo make
11
+ sudo make install
12
+
13
+ sudo mkdir -p /etc/ss5/
14
+
15
+ cat <<-EOF | sudo tee /etc/ss5/ss5.conf
16
+ auth 0.0.0.0/0 - -
17
+ permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
18
+ EOF
19
+
20
+ cat <<-EOF | sudo tee /etc/ss5/ss5-auth.conf
21
+ auth 0.0.0.0/0 - u
22
+ permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
23
+ EOF
24
+
25
+ cat <<-EOF | sudo tee /etc/ss5/ss5.passwd
26
+ root none
27
+ EOF
28
+
29
+ sudo SS5_SOCKS_PORT=1080 SS5_CONFIG_FILE=/etc/ss5/ss5.conf /usr/sbin/ss5 -t -u root
30
+ sudo SS5_SOCKS_PORT=1081 SS5_CONFIG_FILE=/etc/ss5/ss5-auth.conf SS5_PASSWORD_FILE=/etc/ss5/ss5.passwd /usr/sbin/ss5 -t -u root
31
+
32
+ nc -w 3 127.0.0.1 1080
33
+ nc -w 3 127.0.0.1 1081
Binary file
metadata CHANGED
@@ -1,125 +1,215 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sockit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Zachary Patten
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-31 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: pry
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
28
39
  - !ruby/object:Gem::Version
29
40
  version: '0'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rspec
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - ">="
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - ">="
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: yard
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ! '>='
59
+ - - ">="
52
60
  - !ruby/object:Gem::Version
53
61
  version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ! '>='
66
+ - - ">="
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: redcarpet
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
68
88
  - !ruby/object:Gem::Version
69
89
  version: '0'
70
90
  type: :development
71
91
  prerelease: false
72
92
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
93
  requirements:
75
- - - ! '>='
94
+ - - ">="
76
95
  - !ruby/object:Gem::Version
77
96
  version: '0'
78
- description: Transparent SOCKS 5 support for TCPSocket
97
+ - !ruby/object:Gem::Dependency
98
+ name: yarjuf
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-rcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: travis
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: websocket-native
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Transparent SOCKS v4 and SOCKS v5 support for TCPSocket
79
154
  email:
80
- - zachary@jovelabs.com
155
+ - zachary AT jovelabs DOT com
81
156
  executables:
82
- - setup-travis-ci.sh
83
157
  - sockit
84
158
  extensions: []
85
159
  extra_rdoc_files: []
86
160
  files:
87
- - .gitignore
88
- - .rspec
89
- - .rvmrc.template
90
- - .travis.yml
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".ruby-gemset"
164
+ - ".ruby-version"
165
+ - ".travis.yml"
166
+ - ".yardopts"
91
167
  - Gemfile
92
168
  - LICENSE
93
169
  - README.md
94
170
  - Rakefile
95
- - bin/setup-travis-ci.sh
96
171
  - bin/sockit
97
172
  - lib/sockit.rb
173
+ - lib/sockit/connection.rb
174
+ - lib/sockit/support.rb
175
+ - lib/sockit/v4/connection.rb
176
+ - lib/sockit/v4/support.rb
177
+ - lib/sockit/v5/authentication.rb
178
+ - lib/sockit/v5/connection.rb
179
+ - lib/sockit/v5/support.rb
98
180
  - lib/sockit/version.rb
99
181
  - sockit.gemspec
182
+ - spec/sockit/sockit_spec.rb
183
+ - spec/spec_helper.rb
184
+ - spec/support/before_install.sh
185
+ - spec/support/ss5-3.8.9-8.tar.gz
100
186
  homepage: https://github.com/zpatten/sockit
101
- licenses: []
187
+ licenses:
188
+ - Apache 2.0
189
+ metadata: {}
102
190
  post_install_message:
103
191
  rdoc_options: []
104
192
  require_paths:
105
193
  - lib
106
194
  required_ruby_version: !ruby/object:Gem::Requirement
107
- none: false
108
195
  requirements:
109
- - - ! '>='
196
+ - - ">="
110
197
  - !ruby/object:Gem::Version
111
- version: '0'
198
+ version: 2.0.0
112
199
  required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
200
  requirements:
115
- - - ! '>='
201
+ - - ">="
116
202
  - !ruby/object:Gem::Version
117
203
  version: '0'
118
204
  requirements: []
119
205
  rubyforge_project:
120
- rubygems_version: 1.8.24
206
+ rubygems_version: 2.5.1
121
207
  signing_key:
122
- specification_version: 3
123
- summary: Transparent SOCKS 5 support for TCPSocket
124
- test_files: []
208
+ specification_version: 4
209
+ summary: Transparent SOCKS v4 and SOCKS v5 support for TCPSocket
210
+ test_files:
211
+ - spec/sockit/sockit_spec.rb
212
+ - spec/spec_helper.rb
213
+ - spec/support/before_install.sh
214
+ - spec/support/ss5-3.8.9-8.tar.gz
125
215
  has_rdoc:
data/.rvmrc.template DELETED
@@ -1 +0,0 @@
1
- rvm use ruby-1.9.3@sockit --create
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env sh
2
- set -x
3
-
4
- echo $PWD
5
- sudo apt-get -qq -y --force-yes update
6
- sudo apt-get -q -y --force-yes install wget build-essential libpam0g-dev libbsd-dev libbsd0 libbsd0-dbg
7
- wget http://sourceforge.net/projects/ss5/files/ss5/3.8.9-6/ss5-3.8.9-6.tar.gz/download -O ss5-3.8.9.tar.gz
8
- tar -zxvf ss5-3.8.9.tar.gz
9
- cd ss5-3.8.9
10
- ./configure
11
- make