amnesie 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24c5ed35c6b6c48f88f800ccc0fb6476a5cb6ab7b3ab258c781728b9e685cdc3
4
- data.tar.gz: a773adb326beda6e5e2bfb88b4c7b30b5cfe539ca950bef89d07d05192f5fc75
3
+ metadata.gz: b826ad698129628f09059fb95e85e661982d473377e1d8721155da1f4aaa0f6c
4
+ data.tar.gz: 13c076ddfb5ffa659d320724238382cfecd6c3dca6cd96c1a04afa49fbec6248
5
5
  SHA512:
6
- metadata.gz: 779e92ef3926faebf111ca666ebad3e6d42626515740f6c4493a361733f9e13ae7f1d2598a1e2cd47fdc74fe5b7c8aaafef91268cedfede273d88de5dc4e88e0
7
- data.tar.gz: b4390629f5b670825a46a671a82e5a0c22aa0fc7e492dcca5cd8af7defdec367e15b8e2e3981c02df3694136c7194ec9a137dd09372210f99bc1293f102fcb24
6
+ metadata.gz: ebd14700e11fa9b919df3c22f1f13a520b7c1d71f916b8d597a9e3a4ca8923b604795326674d43d83a6a2e96ff6181ab96c2b1410f67e9f823b628b27806cbd4
7
+ data.tar.gz: dec9e3c4c51e4444d1d448bb88357f55f6499672868813be1d3c70be1021ffcf6416ce95794887e737c346a9e062bcbbac9bc49f35744dcaa0ff80c056c811c6
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.2, release 2020-05-15
2
+ * Rakefile, add rake as dev dependencie
3
+ * Check if process/program exist before kill/restart
4
+
1
5
  ## 0.0.1, release 2020-05-13
2
6
  * Can randomize a mac address
3
7
  * Restart services (tor|dhcpcd)
data/README.md CHANGED
@@ -1,8 +1,38 @@
1
1
  # amnesie
2
2
  A tool to make your computer amnesic.
3
3
 
4
- Inpiration come from a post found on [Qubes-OS](https://www.qubes-os.org/doc/anonymizing-your-mac-address/) and the [Whonix](https://www.whonix.org/) project.
4
+ Inspiration come from a post found on [Qubes-OS](https://www.qubes-os.org/doc/anonymizing-your-mac-address/) and the [Whonix](https://www.whonix.org/) project.
5
5
  + Anonymizing your MAC Address
6
6
  + Randomize all Ethernet and Wifi connections
7
7
  + Randomize your hostname
8
- + [Book Clock Randomization](https://www.whonix.org/wiki/Boot_Clock_Randomization)
8
+ + [Boot Clock Randomization](https://www.whonix.org/wiki/Boot_Clock_Randomization)
9
+
10
+ ## Install
11
+ Amnesie is cryptographically signed, so add my public key (if you haven’t already) as a trusted certificate.
12
+
13
+ $ gem cert --add <(curl -Ls https://raw.githubusercontent.com/szorfein/spior/master/certs/szorfein.pem)
14
+
15
+ And install the gem
16
+
17
+ $ gem install amnesie -P MediumSecurity
18
+
19
+ To be able to use the `persist mode` (with systemd for now), the gem should be installed system-wide:
20
+ + For gentoo, a package is available on my repo [ninjatools](https://github.com/szorfein/ninjatools/tree/master/dev-ruby/amnesie).
21
+ + Arch seem to use [Quarry](https://wiki.archlinux.org/index.php/Ruby#Quarry).
22
+ + On distro based on debian, gem are installed system-wide.
23
+
24
+ If you can, i recommend that you create a package for your distribution.
25
+
26
+ ## Usage
27
+ To change the MAC address for eth0:
28
+
29
+ $ amnesie -n eth0 -m
30
+
31
+ ## Left Over
32
+
33
+ ### Issues
34
+ For any questions, comments, feedback or issues, submit a [new issue](https://github.com/szorfein/spior/issues/new).
35
+
36
+ ### links
37
+ + https://rubyreferences.github.io/rubyref
38
+ + https://rubystyle.guide/
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # https://github.com/seattlerb/minitest#running-your-tests-
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/test_*.rb"]
8
+ end
9
+
10
+ task :default => :test
data/amnesie.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "amnesie"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.summary = "A tool to make your computer amnesic"
5
5
  s.description = <<-EOF
6
6
  A tool to make your computer amnesic"
@@ -28,6 +28,8 @@ Gem::Specification.new do |s|
28
28
  s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
29
29
 
30
30
  s.required_ruby_version = '>=2.4'
31
+ s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
32
+
31
33
  s.add_runtime_dependency('rainbow', '3.0.0')
32
34
  s.add_runtime_dependency('interfacez', '1.0.3')
33
35
  s.add_runtime_dependency('nomansland', '0.0.2')
@@ -1,3 +1,4 @@
1
+ require 'tty-which'
1
2
  require_relative 'helpers'
2
3
 
3
4
  module Amnesie
@@ -9,14 +10,18 @@ module Amnesie
9
10
  end
10
11
 
11
12
  def kill
13
+ return if not TTY::Which.exist?('dhcpcd')
12
14
  @pkill.run("dhcpcd")
13
15
  puts "Killed dhcpcd"
14
16
  end
15
17
 
16
18
  def restart
19
+ return if not TTY::Which.exist?('systemctl')
17
20
  @procs.each do |p|
18
- @systemctl.run("restart #{p}")
19
- puts "Restarted #{p}"
21
+ if TTY::Which.exist?(p)
22
+ @systemctl.run("restart #{p}")
23
+ puts "Restarted #{p}"
24
+ end
20
25
  end
21
26
  end
22
27
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amnesie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
@@ -35,8 +35,28 @@ cert_chain:
35
35
  J/zT/q2Ac7BWpSLbv6p9lChBiEnD9j24x463LR5QQjDNS5SsjzRQfFuprsa9Nqf2
36
36
  Tw==
37
37
  -----END CERTIFICATE-----
38
- date: 2020-05-13 00:00:00.000000000 Z
38
+ date: 2020-05-15 00:00:00.000000000 Z
39
39
  dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rake
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '13.0'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 13.0.1
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '13.0'
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 13.0.1
40
60
  - !ruby/object:Gem::Dependency
41
61
  name: rainbow
42
62
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +129,7 @@ files:
109
129
  - CHANGELOG.md
110
130
  - LICENSE
111
131
  - README.md
132
+ - Rakefile
112
133
  - amnesie.gemspec
113
134
  - bin/amnesie
114
135
  - lib/amnesie/helpers.rb
metadata.gz.sig CHANGED
Binary file