zlown 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +86 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +56 -0
- data/LICENSE +21 -0
- data/README.md +20 -0
- data/bin/zlown +4 -0
- data/etc/dnsmasq.conf +660 -0
- data/etc/hostapd/hostapd.conf +7 -0
- data/etc/rc.local +16 -0
- data/etc/systemd/system/zlown.service +15 -0
- data/lib/zlown/cli/app.rb +32 -0
- data/lib/zlown/cli/cli.rb +8 -0
- data/lib/zlown/cli/cmd/init_cmd.rb +12 -0
- data/lib/zlown/cli/cmd/run_cmd.rb +13 -0
- data/lib/zlown/cli/cmd/script_cmd.rb +25 -0
- data/lib/zlown/cli/cmd/systemctl_cmd.rb +50 -0
- data/lib/zlown/cli/cmd/version_cmd.rb +19 -0
- data/lib/zlown/cli/shared.rb +23 -0
- data/lib/zlown/core/core.rb +48 -0
- data/lib/zlown/daemon/daemon.rb +19 -0
- data/lib/zlown/script/script.rb +24 -0
- data/lib/zlown/systemctl/systemctl.rb +48 -0
- data/lib/zlown/version.rb +10 -0
- data/scripts/enable-rogue.sh +12 -0
- data/scripts/sniff-httpry.sh +4 -0
- data/scripts/sniff-ngrep.sh +4 -0
- data/scripts/wifi-power.sh +7 -0
- data/zlown.gemspec +30 -0
- metadata +157 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 12dd97ae6043b9d7db003d9ad93d8246bc7c50bc
|
4
|
+
data.tar.gz: 61e9cd43b4b12b0847fccaf5ec93a4d10d8e049b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d66821b49184959aabb3db095c7f1b13dcc06e8bdfe14ee2de41fb8b952c42d3da76f17eeeff8cdb3d3a80dba394e11a2a4cb6e2245f3120d5caafab2d891ee6
|
7
|
+
data.tar.gz: 4305bdaee80ff27254fdb789fb7da5b3329167d66b2c085ccfad50c793f199724f7809793542582bbff81cfb597d87bf46011c91e14829264c45f3d8f7a565c4
|
data/.gitignore
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
### JetBrains template
|
2
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
|
3
|
+
|
4
|
+
*.iml
|
5
|
+
|
6
|
+
## Directory-based project format:
|
7
|
+
.idea/
|
8
|
+
# if you remove the above rule, at least ignore the following:
|
9
|
+
|
10
|
+
# User-specific stuff:
|
11
|
+
# .idea/workspace.xml
|
12
|
+
# .idea/tasks.xml
|
13
|
+
# .idea/dictionaries
|
14
|
+
|
15
|
+
# Sensitive or high-churn files:
|
16
|
+
# .idea/dataSources.ids
|
17
|
+
# .idea/dataSources.xml
|
18
|
+
# .idea/sqlDataSources.xml
|
19
|
+
# .idea/dynamic.xml
|
20
|
+
# .idea/uiDesigner.xml
|
21
|
+
|
22
|
+
# Gradle:
|
23
|
+
# .idea/gradle.xml
|
24
|
+
# .idea/libraries
|
25
|
+
|
26
|
+
# Mongo Explorer plugin:
|
27
|
+
# .idea/mongoSettings.xml
|
28
|
+
|
29
|
+
## File-based project format:
|
30
|
+
*.ipr
|
31
|
+
*.iws
|
32
|
+
|
33
|
+
## Plugin-specific files:
|
34
|
+
|
35
|
+
# IntelliJ
|
36
|
+
/out/
|
37
|
+
|
38
|
+
# mpeltonen/sbt-idea plugin
|
39
|
+
.idea_modules/
|
40
|
+
|
41
|
+
# JIRA plugin
|
42
|
+
atlassian-ide-plugin.xml
|
43
|
+
|
44
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
45
|
+
com_crashlytics_export_strings.xml
|
46
|
+
crashlytics.properties
|
47
|
+
crashlytics-build.properties
|
48
|
+
### Ruby template
|
49
|
+
*.gem
|
50
|
+
*.rbc
|
51
|
+
/.config
|
52
|
+
/coverage/
|
53
|
+
/InstalledFiles
|
54
|
+
/pkg/
|
55
|
+
/spec/reports/
|
56
|
+
/spec/examples.txt
|
57
|
+
/test/tmp/
|
58
|
+
/test/version_tmp/
|
59
|
+
/tmp/
|
60
|
+
|
61
|
+
## Specific to RubyMotion:
|
62
|
+
.dat*
|
63
|
+
.repl_history
|
64
|
+
build/
|
65
|
+
|
66
|
+
## Documentation cache and generated files:
|
67
|
+
/.yardoc/
|
68
|
+
/_yardoc/
|
69
|
+
/doc/
|
70
|
+
/rdoc/
|
71
|
+
|
72
|
+
## Environment normalisation:
|
73
|
+
/.bundle/
|
74
|
+
/vendor/bundle
|
75
|
+
/lib/bundler/man/
|
76
|
+
|
77
|
+
# for a library or gem, you might want to ignore these files since the code is
|
78
|
+
# intended to run in multiple environments; otherwise, check them in:
|
79
|
+
# Gemfile.lock
|
80
|
+
# .ruby-version
|
81
|
+
# .ruby-gemset
|
82
|
+
|
83
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
84
|
+
.rvmrc
|
85
|
+
|
86
|
+
# Created by .ignore support plugin (hsz.mobi)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
zlown (0.0.1)
|
5
|
+
gli
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.2.0)
|
11
|
+
diff-lcs (1.2.5)
|
12
|
+
docile (1.1.5)
|
13
|
+
gli (2.13.4)
|
14
|
+
json (1.8.3)
|
15
|
+
parser (2.3.0.6)
|
16
|
+
ast (~> 2.2)
|
17
|
+
powerpack (0.1.1)
|
18
|
+
rainbow (2.1.0)
|
19
|
+
rake (10.5.0)
|
20
|
+
rspec (3.4.0)
|
21
|
+
rspec-core (~> 3.4.0)
|
22
|
+
rspec-expectations (~> 3.4.0)
|
23
|
+
rspec-mocks (~> 3.4.0)
|
24
|
+
rspec-core (3.4.2)
|
25
|
+
rspec-support (~> 3.4.0)
|
26
|
+
rspec-expectations (3.4.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.4.0)
|
29
|
+
rspec-mocks (3.4.1)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.4.0)
|
32
|
+
rspec-support (3.4.1)
|
33
|
+
rubocop (0.37.2)
|
34
|
+
parser (>= 2.3.0.4, < 3.0)
|
35
|
+
powerpack (~> 0.1)
|
36
|
+
rainbow (>= 1.99.1, < 3.0)
|
37
|
+
ruby-progressbar (~> 1.7)
|
38
|
+
unicode-display_width (~> 0.3)
|
39
|
+
ruby-progressbar (1.7.5)
|
40
|
+
simplecov (0.11.2)
|
41
|
+
docile (~> 1.1.0)
|
42
|
+
json (~> 1.8)
|
43
|
+
simplecov-html (~> 0.10.0)
|
44
|
+
simplecov-html (0.10.0)
|
45
|
+
unicode-display_width (0.3.1)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
bundler (~> 1.7)
|
52
|
+
rake (~> 10.0)
|
53
|
+
rspec
|
54
|
+
rubocop
|
55
|
+
simplecov (~> 0.11)
|
56
|
+
zlown!
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Tomas Korcak
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# zlown
|
2
|
+
|
3
|
+
Rogue Access Point
|
4
|
+
|
5
|
+
## Prerequisites
|
6
|
+
|
7
|
+
- systemd
|
8
|
+
- dnsmasq
|
9
|
+
- hostapd
|
10
|
+
- ruby
|
11
|
+
- rubygems
|
12
|
+
- bundler
|
13
|
+
|
14
|
+
## How To
|
15
|
+
|
16
|
+
- `git clone https://github.com/korczis/zlown.git`
|
17
|
+
- `bundle`
|
18
|
+
- `./bin/zlown init`
|
19
|
+
- `./bin/zlown enable`
|
20
|
+
- `./bin/zlown start`
|
data/bin/zlown
ADDED