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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/README.md +32 -2
- data/Rakefile +10 -0
- data/amnesie.gemspec +3 -1
- data/lib/amnesie/process.rb +7 -2
- data.tar.gz.sig +0 -0
- metadata +23 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b826ad698129628f09059fb95e85e661982d473377e1d8721155da1f4aaa0f6c
|
4
|
+
data.tar.gz: 13c076ddfb5ffa659d320724238382cfecd6c3dca6cd96c1a04afa49fbec6248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd14700e11fa9b919df3c22f1f13a520b7c1d71f916b8d597a9e3a4ca8923b604795326674d43d83a6a2e96ff6181ab96c2b1410f67e9f823b628b27806cbd4
|
7
|
+
data.tar.gz: dec9e3c4c51e4444d1d448bb88357f55f6499672868813be1d3c70be1021ffcf6416ce95794887e737c346a9e062bcbbac9bc49f35744dcaa0ff80c056c811c6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,38 @@
|
|
1
1
|
# amnesie
|
2
2
|
A tool to make your computer amnesic.
|
3
3
|
|
4
|
-
|
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
|
-
+ [
|
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
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.
|
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')
|
data/lib/amnesie/process.rb
CHANGED
@@ -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
|
-
|
19
|
-
|
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.
|
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-
|
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
|