spior 0.1.2 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,96 @@
1
+ require 'pathname'
2
+ require 'nomansland'
3
+ require 'tty-which'
4
+
5
+ module Spior
6
+ module Tor
7
+ class Info
8
+ attr_accessor :dns, :uid, :trans_port, :virt_addr
9
+
10
+ def initialize
11
+ @systemctl = Helpers::Exec.new("systemctl")
12
+ @dns = search_dns
13
+ @uid = search_uid
14
+ @trans_port = search_trans_port
15
+ @virt_addr = search_virt_addr
16
+ end
17
+
18
+ private
19
+
20
+ def check_deps
21
+ Spior::Copy.new.save
22
+ add_torrc
23
+ Spior::Service.start
24
+ end
25
+
26
+ def self.grep?(file, regex)
27
+ is_found = false
28
+ return is_found if ! File.exist? file
29
+ File.open(file) do |f|
30
+ f.each do |line|
31
+ is_found = true if line.match(regex)
32
+ end
33
+ end
34
+ is_found
35
+ end
36
+
37
+ def add_torrc
38
+ user = 'User tor'
39
+ pid = ''
40
+ dir = 'DataDirectory /var/lib/tor'
41
+
42
+ case Nomansland::distro?
43
+ when :gentoo
44
+ pid = 'PIDFile /run/tor/tor.pid'
45
+ dir = 'DataDirectory /var/lib/tor/data'
46
+ when :debian
47
+ user = 'debian-tor'
48
+ when :ubuntu
49
+ user = 'debian-tor'
50
+ end
51
+
52
+ string = <<EOF
53
+ # Generated by Spior
54
+ #{user}
55
+ #{pid}
56
+ #{dir}
57
+ GeoIPExcludeUnknown 1
58
+ DNSPort 127.0.0.1:9061
59
+ AutomapHostsOnResolve 1
60
+ AutomapHostsSuffixes .exit,.onion
61
+ SocksPort 9050
62
+ VirtualAddrNetworkIPv4 10.192.0.0/10
63
+ TransPort 9040 IsolateClientAddr IsolateClientProtocol IsolateDestAddr IsolateDestPort
64
+ TestSocks 1
65
+ MaxCircuitDirtiness 600
66
+ EOF
67
+ new_file = Helpers::NewFile.new(string, "torrc", "/etc/tor")
68
+ new_file.add
69
+ new_file.perm("root", "644")
70
+ end
71
+
72
+ def search_dns
73
+ 9061
74
+ end
75
+
76
+ def search_uid
77
+ case Nomansland::distro?
78
+ when :debian
79
+ `id -u debian-tor`.chomp
80
+ when :ubuntu
81
+ `id -u debian-tor`.chomp
82
+ else
83
+ `id -u tor`.chomp
84
+ end
85
+ end
86
+
87
+ def search_trans_port
88
+ 9040
89
+ end
90
+
91
+ def search_virt_addr
92
+ "10.192.0.0/10"
93
+ end
94
+ end
95
+ end
96
+ end
data/lib/spior/tor.rb CHANGED
@@ -1,68 +1,6 @@
1
- require 'pathname'
2
- require 'nomansland'
3
- require 'tty-which'
4
- require_relative 'msg'
5
- require_relative 'install'
6
- require_relative 'copy'
7
- require_relative 'helpers'
8
-
9
1
  module Spior
10
- class Tor
11
- attr_accessor :dns, :uid, :trans_port, :virt_addr
12
-
13
- def initialize
14
- @systemctl = Helpers::Exec.new("systemctl")
15
- check_deps
16
- @dns = search_dns
17
- @uid = search_uid
18
- @trans_port = search_trans_port
19
- @virt_addr = search_virt_addr
20
- end
21
-
22
- private
23
-
24
- def check_deps
25
- Spior::Install::check_base
26
- Spior::Copy::config_files
27
- verify_service
28
- end
29
-
30
- def search_dns
31
- 9061
32
- end
33
-
34
- def search_uid
35
- case Nomansland::distro?
36
- when :debian
37
- `id -u debian-tor`.chomp
38
- when :ubuntu
39
- `id -u debian-tor`.chomp
40
- else
41
- `id -u tor`.chomp
42
- end
43
- end
44
-
45
- def search_trans_port
46
- 9040
47
- end
48
-
49
- def search_virt_addr
50
- "10.192.0.0/10"
51
- end
52
-
53
- def verify_service
54
- if TTY::Which.exist?('systemctl')
55
- state = `systemctl is-active tor`.chomp
56
- if state == 'active'
57
- #puts "Restart tor"
58
- @systemctl.run('restart tor')
59
- else
60
- #puts "Start tor"
61
- @systemctl.run('start tor')
62
- end
63
- else
64
- Msg.for_no_systemd
65
- end
66
- end
2
+ module Tor
67
3
  end
68
4
  end
5
+
6
+ require_relative 'tor/info'
@@ -0,0 +1,3 @@
1
+ module Spior
2
+ VERSION = '0.1.6'.freeze
3
+ end
data/lib/spior.rb ADDED
@@ -0,0 +1,44 @@
1
+ require_relative 'spior/clear'
2
+ require_relative 'spior/copy'
3
+ require_relative 'spior/dep'
4
+ require_relative 'spior/iptables'
5
+ require_relative 'spior/msg'
6
+ require_relative 'spior/options'
7
+ require_relative 'spior/status'
8
+ require_relative 'spior/tor'
9
+ require_relative 'spior/persist'
10
+ require_relative 'spior/menu'
11
+ require_relative 'spior/service'
12
+ require_relative 'spior/helpers'
13
+
14
+ module Spior
15
+ class Main
16
+ def initialize(argv)
17
+ @argv = argv
18
+ run
19
+ end
20
+
21
+ private
22
+
23
+ def run
24
+ options = Options.new(@argv)
25
+
26
+ if options.install
27
+ Msg.head
28
+ Dep.install
29
+ Copy.new.save
30
+ end
31
+
32
+ Dep.check
33
+
34
+ if options.tor
35
+ Msg.head
36
+ Iptables::Tor.new.run!
37
+ end
38
+
39
+ if options.persist
40
+ Persist.enable
41
+ end
42
+ end
43
+ end
44
+ end
data/man/spior.1 ADDED
@@ -0,0 +1,53 @@
1
+ .\" generated with Ronn/v0.7.3
2
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
+ .
4
+ .TH "SPIOR" "1" "December 2021" "" ""
5
+ .
6
+ .SH "NAME"
7
+ \fBspior\fR \- Redirect all traffic to the Tor network
8
+ .
9
+ .SH "SYNOPSIS"
10
+ \fBspior\fR [\fIOPTIONS\fR\.\.\.]
11
+ .
12
+ .SH "DESCRIPTION"
13
+ \fBSpior\fR can redirect all the local traffic to the Tor network\.
14
+ .
15
+ .SH "OPTIONS"
16
+ .
17
+ .TP
18
+ \fB\-h\fR, \fB\-\-help\fR
19
+ Display the help and exit\.
20
+ .
21
+ .TP
22
+ \fB\-t\fR, \fB\-\-tor\fR
23
+ Spior will backup and create a new \fB/etc/tor/torrc\fR to add the required \fBtor\fR options and finally use \fBiptables\fR to create a transparent proxy throught Tor\.
24
+ .
25
+ .TP
26
+ \fB\-p\fR, \fB\-\-persist\fR
27
+ This option use \fBiptable\-save\fR to save actual rules and try to enable the service \fBiptables\fR for boot\.
28
+ .
29
+ .TP
30
+ \fB\-r\fR, \fB\-\-reload\fR
31
+ This option reload the Tor circuit which change your current ip address\. Use this option if your actual ip is blacklisted\.
32
+ .
33
+ .TP
34
+ \fB\-c\fR, \fB\-\-clearnet\fR
35
+ This option stop to redirect to Tor (by cleaning \fBiptables\fR rules) and use the normal connection\.
36
+ .
37
+ .SH "EXAMPLES"
38
+ Display the help:
39
+ .
40
+ .br
41
+ $ spior \-h
42
+ .
43
+ .P
44
+ Redirect all the traffic throught Tor:
45
+ .
46
+ .br
47
+ $ spior \-\-tor
48
+ .
49
+ .SH "SEE ALSO"
50
+ iptables(8), tor(1)
51
+ .
52
+ .SH "ISSUES"
53
+ You are free to report any new bugs|features|issues at https://github\.com/szorfein/spior/issues\.
data/man/spior.1.html ADDED
@@ -0,0 +1,122 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv='content-type' value='text/html;charset=utf8'>
5
+ <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
6
+ <title>spior(1) - Redirect all traffic to the Tor network</title>
7
+ <style type='text/css' media='all'>
8
+ /* style: man */
9
+ body#manpage {margin:0}
10
+ .mp {max-width:100ex;padding:0 9ex 1ex 4ex}
11
+ .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
12
+ .mp h2 {margin:10px 0 0 0}
13
+ .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
14
+ .mp h3 {margin:0 0 0 4ex}
15
+ .mp dt {margin:0;clear:left}
16
+ .mp dt.flush {float:left;width:8ex}
17
+ .mp dd {margin:0 0 0 9ex}
18
+ .mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
19
+ .mp pre {margin-bottom:20px}
20
+ .mp pre+h2,.mp pre+h3 {margin-top:22px}
21
+ .mp h2+pre,.mp h3+pre {margin-top:5px}
22
+ .mp img {display:block;margin:auto}
23
+ .mp h1.man-title {display:none}
24
+ .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
25
+ .mp h2 {font-size:16px;line-height:1.25}
26
+ .mp h1 {font-size:20px;line-height:2}
27
+ .mp {text-align:justify;background:#fff}
28
+ .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
29
+ .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
30
+ .mp u {text-decoration:underline}
31
+ .mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
32
+ .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
33
+ .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
34
+ .mp b.man-ref {font-weight:normal;color:#434241}
35
+ .mp pre {padding:0 4ex}
36
+ .mp pre code {font-weight:normal;color:#434241}
37
+ .mp h2+pre,h3+pre {padding-left:0}
38
+ ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
39
+ ol.man-decor {width:100%}
40
+ ol.man-decor li.tl {text-align:left}
41
+ ol.man-decor li.tc {text-align:center;letter-spacing:4px}
42
+ ol.man-decor li.tr {text-align:right;float:right}
43
+ </style>
44
+ </head>
45
+ <!--
46
+ The following styles are deprecated and will be removed at some point:
47
+ div#man, div#man ol.man, div#man ol.head, div#man ol.man.
48
+
49
+ The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
50
+ .man-navigation should be used instead.
51
+ -->
52
+ <body id='manpage'>
53
+ <div class='mp' id='man'>
54
+
55
+ <div class='man-navigation' style='display:none'>
56
+ <a href="#NAME">NAME</a>
57
+ <a href="#SYNOPSIS">SYNOPSIS</a>
58
+ <a href="#DESCRIPTION">DESCRIPTION</a>
59
+ <a href="#OPTIONS">OPTIONS</a>
60
+ <a href="#EXAMPLES">EXAMPLES</a>
61
+ <a href="#SEE-ALSO">SEE ALSO</a>
62
+ <a href="#ISSUES">ISSUES</a>
63
+ </div>
64
+
65
+ <ol class='man-decor man-head man head'>
66
+ <li class='tl'>spior(1)</li>
67
+ <li class='tc'></li>
68
+ <li class='tr'>spior(1)</li>
69
+ </ol>
70
+
71
+ <h2 id="NAME">NAME</h2>
72
+ <p class="man-name">
73
+ <code>spior</code> - <span class="man-whatis">Redirect all traffic to the Tor network</span>
74
+ </p>
75
+
76
+ <h2 id="SYNOPSIS">SYNOPSIS</h2>
77
+
78
+ <p><code>spior</code> [<var>OPTIONS</var>...]</p>
79
+
80
+ <h2 id="DESCRIPTION">DESCRIPTION</h2>
81
+
82
+ <p><strong>Spior</strong> can redirect all the local traffic to the Tor network.</p>
83
+
84
+ <h2 id="OPTIONS">OPTIONS</h2>
85
+
86
+ <dl>
87
+ <dt><code>-h</code>, <code>--help</code></dt><dd><p>Display the help and exit.</p></dd>
88
+ <dt><code>-t</code>, <code>--tor</code></dt><dd><p>Spior will backup and create a new <code>/etc/tor/torrc</code> to add the required
89
+ <code>tor</code> options and finally use <code>iptables</code> to create a transparent proxy
90
+ throught Tor.</p></dd>
91
+ <dt><code>-p</code>, <code>--persist</code></dt><dd><p>This option use <code>iptable-save</code> to save actual rules and try to enable the service <code>iptables</code> for boot.</p></dd>
92
+ <dt><code>-r</code>, <code>--reload</code></dt><dd><p>This option reload the Tor circuit which change your current ip address. Use this option if your actual ip is blacklisted.</p></dd>
93
+ <dt><code>-c</code>, <code>--clearnet</code></dt><dd><p>This option stop to redirect to Tor (by cleaning <code>iptables</code> rules) and use the normal connection.</p></dd>
94
+ </dl>
95
+
96
+
97
+ <h2 id="EXAMPLES">EXAMPLES</h2>
98
+
99
+ <p>Display the help:<br />
100
+ $ spior -h</p>
101
+
102
+ <p>Redirect all the traffic throught Tor:<br />
103
+ $ spior --tor</p>
104
+
105
+ <h2 id="SEE-ALSO">SEE ALSO</h2>
106
+
107
+ <p><span class="man-ref">iptables<span class="s">(8)</span></span>, <span class="man-ref">tor<span class="s">(1)</span></span></p>
108
+
109
+ <h2 id="ISSUES">ISSUES</h2>
110
+
111
+ <p>You are free to report any new bugs|features|issues at https://github.com/szorfein/spior/issues.</p>
112
+
113
+
114
+ <ol class='man-decor man-foot man foot'>
115
+ <li class='tl'></li>
116
+ <li class='tc'>December 2021</li>
117
+ <li class='tr'>spior(1)</li>
118
+ </ol>
119
+
120
+ </div>
121
+ </body>
122
+ </html>
data/man/spior.1.ronn ADDED
@@ -0,0 +1,46 @@
1
+ spior(1) -- Redirect all traffic to the Tor network
2
+ ====================================================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `spior` [<OPTIONS>...]
7
+
8
+ ## DESCRIPTION
9
+
10
+ **Spior** can redirect all the local traffic to the Tor network.
11
+
12
+ ## OPTIONS
13
+
14
+ * `-h`, `--help`:
15
+ Display the help and exit.
16
+
17
+ * `-t`, `--tor`:
18
+ Spior will backup and create a new `/etc/tor/torrc` to add the required
19
+ `tor` options and finally use `iptables` to create a transparent proxy
20
+ throught Tor.
21
+
22
+ * `-p`, `--persist`:
23
+ This option use `iptable-save` to save actual rules and try to enable the service `iptables` for boot.
24
+
25
+ * `-r`, `--reload`:
26
+ This option reload the Tor circuit which change your current ip address. Use this option if your actual ip is blacklisted.
27
+
28
+ * `-c`, `--clearnet`:
29
+ This option stop to redirect to Tor (by cleaning `iptables` rules) and use the normal connection.
30
+
31
+ ## EXAMPLES
32
+
33
+ Display the help:<br>
34
+ $ spior -h
35
+
36
+ Redirect all the traffic throught Tor:<br>
37
+ $ spior --tor
38
+
39
+
40
+ ## SEE ALSO
41
+
42
+ iptables(8), tor(1)
43
+
44
+ ## ISSUES
45
+
46
+ You are free to report any new bugs|features|issues at https://github.com/szorfein/spior/issues.
data/spior.gemspec CHANGED
@@ -1,9 +1,11 @@
1
+ require File.dirname(__FILE__) + "/lib/spior/version"
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = "spior"
3
- s.version = "0.1.2"
4
- s.summary = "A tool to make TOR your default gateway and randomize your hardware"
5
+ s.version = Spior::VERSION
6
+ s.summary = "A tool to make TOR your default gateway"
5
7
  s.description = <<-EOF
6
- A tool to make TOR your default gateway and randomize your hardware.
8
+ A tool to make TOR your default gateway
7
9
  EOF
8
10
  s.metadata = {
9
11
  "changelog_uri" => "https://github.com/szorfein/spior/blob/master/CHANGELOG.md",
@@ -32,10 +34,10 @@ Gem::Specification.new do |s|
32
34
  s.requirements << 'tor'
33
35
  s.requirements << 'iptables'
34
36
 
35
- s.required_ruby_version = '>=2.4'
37
+ s.required_ruby_version = '>=2.5'
36
38
 
37
39
  s.add_runtime_dependency('rainbow', '3.0.0')
38
40
  s.add_runtime_dependency('interfacez', '1.0.3')
39
- s.add_runtime_dependency('nomansland', '0.0.2')
41
+ s.add_runtime_dependency('nomansland', '0.0.3')
40
42
  s.add_runtime_dependency('tty-which', '0.4.2')
41
43
  end
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- <�c*��2C'�E�>�@@sO
1
+ p@�A��ǝ��#tO܈t fmC2z��o��@U�L�f b�C�B)�����n��[�����!�%|�e�w���ϻ��E�Ԟ;������E��@Z:y)�O�$���&smz)Me���$��a��bx�=�gW
2
+ 3�ΰ�����H:F�%�y���L��R�k� ���P��sԞ����A���Lx�M�B!�‹�i�%�c�A���P�s6�J�۝2�kϖ�;"<�BG�k�����>^���gk ��R���vH�Y�"��"��F�DL������o�ѻkN��j�$��I��U��M�mt`��ߋa�9Km4#�0��d��GG�d��H�ҩ`M��\
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zem9y
14
- ZmVpbi9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMDA0MzAxNzAxNDBaFw0yMTA0
15
- MzAxNzAxNDBaMCgxJjAkBgNVBAMMHXN6b3JmZWluL0RDPXByb3Rvbm1haWwvREM9
14
+ ZmVpbi9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMTA1MTEyMTAzNDZaFw0yMjA1
15
+ MTEyMTAzNDZaMCgxJjAkBgNVBAMMHXN6b3JmZWluL0RDPXByb3Rvbm1haWwvREM9
16
16
  Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAxCTYZRndCTRy18rE
17
17
  exr2wig/staa0G5kt99xqaBYD0dnIRBr/GO5dFntlBVwmefQlTrNbygVUIYTb8Vg
18
18
  B1oX3v/LLW9SRQcWaZwou0tARqanm5WhgV1ZYQTs22endTazsDHw0uhM3V+FgDh+
@@ -25,17 +25,17 @@ cert_chain:
25
25
  BgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUc8XWveAjxS5fVEOZeeZe
26
26
  uUQmbhMwIgYDVR0RBBswGYEXc3pvcmZlaW5AcHJvdG9ubWFpbC5jb20wIgYDVR0S
27
27
  BBswGYEXc3pvcmZlaW5AcHJvdG9ubWFpbC5jb20wDQYJKoZIhvcNAQELBQADggGB
28
- AG4K1ZJdzcVABSnVuD83z5ne9eBlrYscHHSXev5FX32jFdKxl19FQ+eorjSOTsNq
29
- SIgKneQOKdsWIlv8M6NDiUDcc1s504fOpIVtMbP+6n47hBGz4bzGlAdtvTO1PewK
30
- tW6ii8TOCOJ3Pv6bTzQlsaQrADi2MHuVHTb14H7uoSFJNzfU4sYJn1C3PRMC3G7n
31
- Qe/zVOdMf0bkwBnfQNojbwx3Vy1jr2JSQWjK25NYimpuKV0skanU0iBiqru6VCbK
32
- zhDNufCgCnWLwXXET3onVQMZsiLTUFf30BXX7PY1O0Km15MQn1HzOecJ3ZIDBWtS
33
- d/lg1MHB7+/FQAY5FujZqvVv5i2M9wLx+7N4ONRA7MsWD86hLiYN68QeRsHI+LNf
34
- AnVdw7i28f3GhZldcdllblGeTOjSfwl9wL4yBb1UwVjvcwMR5SDed0yPmHPXBiAC
35
- J/zT/q2Ac7BWpSLbv6p9lChBiEnD9j24x463LR5QQjDNS5SsjzRQfFuprsa9Nqf2
36
- Tw==
28
+ AHuRqWvtAx1PSIEcvq1uzgBclzP+Lhp6J1f7McvbfzHAZuLo5Nv9iFHkLl2ad9gx
29
+ p/X2/p8PmgiUNFSXDdB12Pn/VbX4DdoQujwXvmZbQo2KmooklHIhM6AJMafOHW1N
30
+ qjHIwGvMY5bJfn+3qEQNV+yip6KnCUQVklw132IFvdusoBOPfEP48p41deXbIhNP
31
+ GNJQ4qkZfXWdLumikb2Y432kIIeugIIAL57VD+wwDUJ3MciiLufYT7v9WNSFRenV
32
+ JDNGIh3AYiCnNO2DWIArrW6/jaof3A0OnjRQ64vS+EKhZFp8+y6rfC3Clrfjdjse
33
+ a4zH3TI57bnzfkx5xhjhIu6LJnBpk0x8Y/N2kVmwB+GonFiRcVzZpIfOLvy03tn5
34
+ dAHfUn//hrBJAT9EXRHNUoLyEmFsCPabTCXjQH6EM2uBcsrjQN4SlgBNzsKc8bS4
35
+ F9Dl4EPzjBJOgQWf+NxzxNuNKI46Lp5Q8AI+xtDUHAPbSswHa40BA6ChFehP+j0L
36
+ fg==
37
37
  -----END CERTIFICATE-----
38
- date: 2020-05-13 00:00:00.000000000 Z
38
+ date: 2021-12-30 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rainbow
@@ -71,14 +71,14 @@ dependencies:
71
71
  requirements:
72
72
  - - '='
73
73
  - !ruby/object:Gem::Version
74
- version: 0.0.2
74
+ version: 0.0.3
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 0.0.2
81
+ version: 0.0.3
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: tty-which
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -93,7 +93,7 @@ dependencies:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
95
  version: 0.4.2
96
- description: " A tool to make TOR your default gateway and randomize your hardware.\n"
96
+ description: " A tool to make TOR your default gateway\n"
97
97
  email: szorfein@protonmail.com
98
98
  executables:
99
99
  - spior
@@ -106,30 +106,33 @@ files:
106
106
  - CHANGELOG.md
107
107
  - LICENSE
108
108
  - README.md
109
+ - Rakefile
109
110
  - bin/spior
110
- - conf/ipt_mod.conf
111
- - conf/iptables.service
112
- - conf/resolv.conf
113
- - conf/ssh.conf
114
- - conf/sshd.conf
115
- - conf/sshuttle.service
116
- - conf/torrc/torrc_archlinux
117
- - conf/torrc/torrc_default
111
+ - ext/ipt_mod.conf
112
+ - ext/iptables.service
113
+ - lib/spior.rb
118
114
  - lib/spior/clear.rb
119
115
  - lib/spior/copy.rb
116
+ - lib/spior/dep.rb
120
117
  - lib/spior/helpers.rb
121
- - lib/spior/install.rb
122
118
  - lib/spior/iptables.rb
123
- - lib/spior/mac.rb
119
+ - lib/spior/iptables/default.rb
120
+ - lib/spior/iptables/root.rb
121
+ - lib/spior/iptables/tor.rb
124
122
  - lib/spior/menu.rb
125
123
  - lib/spior/msg.rb
126
- - lib/spior/network.rb
127
124
  - lib/spior/options.rb
128
125
  - lib/spior/persist.rb
129
- - lib/spior/reload.rb
130
- - lib/spior/runner.rb
126
+ - lib/spior/service.rb
127
+ - lib/spior/service/restart.rb
128
+ - lib/spior/service/start.rb
131
129
  - lib/spior/status.rb
132
130
  - lib/spior/tor.rb
131
+ - lib/spior/tor/info.rb
132
+ - lib/spior/version.rb
133
+ - man/spior.1
134
+ - man/spior.1.html
135
+ - man/spior.1.ronn
133
136
  - spior.gemspec
134
137
  - test/test_install.rb
135
138
  - test/test_options.rb
@@ -140,7 +143,7 @@ metadata:
140
143
  changelog_uri: https://github.com/szorfein/spior/blob/master/CHANGELOG.md
141
144
  bug_tracker_uri: https://github.com/szorfein/spior/issues
142
145
  wiki_uri: https://github.com/szorfein/spior
143
- post_install_message:
146
+ post_install_message:
144
147
  rdoc_options: []
145
148
  require_paths:
146
149
  - lib
@@ -148,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
151
  requirements:
149
152
  - - ">="
150
153
  - !ruby/object:Gem::Version
151
- version: '2.4'
154
+ version: '2.5'
152
155
  required_rubygems_version: !ruby/object:Gem::Requirement
153
156
  requirements:
154
157
  - - ">="
@@ -157,10 +160,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
160
  requirements:
158
161
  - tor
159
162
  - iptables
160
- rubygems_version: 3.1.2
161
- signing_key:
163
+ rubygems_version: 3.2.32
164
+ signing_key:
162
165
  specification_version: 4
163
- summary: A tool to make TOR your default gateway and randomize your hardware
166
+ summary: A tool to make TOR your default gateway
164
167
  test_files:
165
- - test/test_options.rb
166
168
  - test/test_install.rb
169
+ - test/test_options.rb
metadata.gz.sig CHANGED
Binary file
data/conf/resolv.conf DELETED
@@ -1 +0,0 @@
1
- nameserver 127.0.0.1
data/conf/ssh.conf DELETED
@@ -1,29 +0,0 @@
1
- Host *.onion
2
- ProxyCommand socat - SOCKS4A:localhost:%h:%p,socksport=9050
3
-
4
- Host github.com
5
- KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
6
- Ciphers chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc
7
- MACs hmac-sha2-256,hmac-sha2-512,hmac-sha1
8
-
9
- Host *
10
- Protocol 2
11
- KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
12
-
13
- MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
14
-
15
- Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
16
-
17
- PasswordAuthentication no
18
- ChallengeResponseAuthentication no
19
- PubkeyAuthentication yes
20
- ForwardX11Trusted no
21
- ForwardX11 no
22
- ForwardAgent no
23
- ConnectTimeout 40
24
-
25
- # Send locale environment variables. #367017
26
- SendEnv LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LANGUAGE LC_ADDRESS LC_IDENTIFICATION LC_MEASUREMENT LC_NAME LC_PAPER LC_TELEPHONE
27
-
28
- # Send COLORTERM to match TERM. #658540
29
- SendEnv COLORTERM