ronin 1.4.1 → 1.5.0.rc1

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.
Files changed (66) hide show
  1. data/.document +1 -0
  2. data/.gitignore +1 -0
  3. data/ChangeLog.md +38 -1
  4. data/Gemfile +10 -10
  5. data/README.md +1 -1
  6. data/Rakefile +13 -2
  7. data/bin/ronin-net-proxy +25 -0
  8. data/gemspec.yml +21 -2
  9. data/lib/bond/completions/ronin.rb +16 -5
  10. data/lib/ronin/arch.rb +5 -5
  11. data/lib/ronin/auto_load.rb +22 -1
  12. data/lib/ronin/campaign.rb +1 -1
  13. data/lib/ronin/database/database.rb +36 -25
  14. data/lib/ronin/installation.rb +2 -2
  15. data/lib/ronin/model/model.rb +5 -6
  16. data/lib/ronin/model/types/description.rb +0 -3
  17. data/lib/ronin/os.rb +2 -2
  18. data/lib/ronin/password.rb +1 -1
  19. data/lib/ronin/repository.rb +6 -6
  20. data/lib/ronin/script/path.rb +1 -2
  21. data/lib/ronin/spec/database.rb +16 -4
  22. data/lib/ronin/ui/cli/cli.rb +1 -1
  23. data/lib/ronin/ui/cli/command.rb +50 -7
  24. data/lib/ronin/ui/cli/commands/console.rb +15 -6
  25. data/lib/ronin/ui/cli/commands/creds.rb +1 -1
  26. data/lib/ronin/ui/cli/commands/database.rb +41 -29
  27. data/lib/ronin/ui/cli/commands/emails.rb +20 -15
  28. data/lib/ronin/ui/cli/commands/help.rb +18 -5
  29. data/lib/ronin/ui/cli/commands/hosts.rb +34 -27
  30. data/lib/ronin/ui/cli/commands/install.rb +21 -4
  31. data/lib/ronin/ui/cli/commands/ips.rb +34 -23
  32. data/lib/ronin/ui/cli/commands/net/proxy.rb +403 -0
  33. data/lib/ronin/ui/cli/commands/repos.rb +4 -4
  34. data/lib/ronin/ui/cli/commands/uninstall.rb +10 -0
  35. data/lib/ronin/ui/cli/commands/update.rb +11 -1
  36. data/lib/ronin/ui/cli/commands/urls.rb +39 -30
  37. data/lib/ronin/ui/cli/commands/wordlist.rb +11 -1
  38. data/lib/ronin/ui/console.rb +1 -0
  39. data/lib/ronin/ui/console/commands.rb +16 -98
  40. data/lib/ronin/ui/console/shell.rb +184 -0
  41. data/lib/ronin/url.rb +3 -3
  42. data/lib/ronin/url_scheme.rb +3 -3
  43. data/lib/ronin/version.rb +1 -1
  44. data/man/ronin-campaigns.1.md +78 -0
  45. data/man/ronin-console.1.md +72 -0
  46. data/man/ronin-creds.1.md +66 -0
  47. data/man/ronin-database.1.md +82 -0
  48. data/man/ronin-emails.1.md +72 -0
  49. data/man/ronin-exec.1.md +49 -0
  50. data/man/ronin-help.1.md +34 -0
  51. data/man/ronin-hosts.1.md +78 -0
  52. data/man/ronin-install.1.md +79 -0
  53. data/man/ronin-ips.1.md +81 -0
  54. data/man/ronin-net-proxy.1.md +86 -0
  55. data/man/ronin-repos.1.md +77 -0
  56. data/man/ronin-uninstall.1.md +67 -0
  57. data/man/ronin-update.1.md +67 -0
  58. data/man/ronin-urls.1.md +84 -0
  59. data/man/ronin-wordlist.1.md +53 -0
  60. data/man/ronin.1.md +26 -0
  61. data/ronin.gemspec +38 -109
  62. data/spec/installation_spec.rb +2 -1
  63. data/spec/spec_helper.rb +2 -0
  64. data/spec/ui/cli/classes/test_command.rb +7 -0
  65. data/spec/ui/cli/command_spec.rb +235 -7
  66. metadata +217 -96
@@ -0,0 +1,34 @@
1
+ # ronin-help 1 "April 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin help` [*options*] [*COMMAND*]
6
+
7
+ ## DESCRIPTION
8
+
9
+ Displays the list of available Commands or prints information on a specific
10
+ COMMAND.
11
+
12
+ ## ARGUMENTS
13
+
14
+ *COMMAND*
15
+ The optional command to get detailed help information on.
16
+
17
+ ## OPTIONS
18
+
19
+ `-v`, `--[no-]verbose`
20
+ Enable verbose output.
21
+
22
+ `-q`, `--[no-]quiet`
23
+ Disable verbose output.
24
+
25
+ `--[no-]silent`
26
+ Silence all output.
27
+
28
+ `--[no-]color`
29
+ Enables color output.
30
+
31
+ ## AUTHOR
32
+
33
+ Postmodern <postmodern.mod3@gmail.com>
34
+
@@ -0,0 +1,78 @@
1
+ # ronin-hosts 1 "April 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin hosts` [*options*]
6
+
7
+ ## DESCRIPTION
8
+
9
+ Manages HostNames.
10
+
11
+ ## OPTIONS
12
+
13
+ `-v`, `--[no-]verbose`
14
+ Enable verbose output.
15
+
16
+ `-q`, `--[no-]quiet`
17
+ Disable verbose output.
18
+
19
+ `--[no-]silent`
20
+ Silence all output.
21
+
22
+ `--[no-]color`
23
+ Enables color output.
24
+
25
+ `-D`, `--database` *URI*
26
+ The database to URI (`mysql://user:password@host/ronin`).
27
+
28
+ `--[no-]csv`
29
+ CSV output.
30
+
31
+ `--[no-]xml`
32
+ XML output.
33
+
34
+ `--[no-]yaml`
35
+ YAML output.
36
+
37
+ `--[no-]json`
38
+ JSON output.
39
+
40
+ `-i`, `--import` *FILE*
41
+ Imports HostNames from the FILE.
42
+
43
+ `-I`, `--with-ips` *IP* [...]
44
+ Searches for HostNames associated with the IP Address(es).
45
+
46
+ `-p`, `--with-ports` *PORT* [...]
47
+ Searches for HostNames associated with the PORT(s).
48
+
49
+ `-D`, `--domain` *DOMAIN*
50
+ Searches for HostNames belonging to the DOMAIN (`co.uk`).
51
+
52
+ `-T`, `--tld` *TLD*
53
+ Searches for HostNames with the Top-Level-Domain (TLD) (`ru`).
54
+
55
+ `-l`, `--[no-]list`
56
+ Lists the HostNames.
57
+
58
+ `-L`, `--lookup` *IP*
59
+ Looks the HostNames associated with the IP Address.
60
+
61
+ ## FILES
62
+
63
+ *~/.ronin/*
64
+ Ronin configuration directory.
65
+
66
+ *~/.ronin/database.log*
67
+ Database log.
68
+
69
+ *~/.ronin/database.sqlite3*
70
+ The default sqlite3 Database file.
71
+
72
+ *~/.ronin/database.yml*
73
+ Optional Database configuration.
74
+
75
+ ## AUTHOR
76
+
77
+ Postmodern <postmodern.mod3@gmail.com>
78
+
@@ -0,0 +1,79 @@
1
+ # ronin-install 1 "APRIL 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin install` [*options*] *URI*
6
+
7
+ ## DESCRIPTION
8
+
9
+ Installs Ronin Repositories.
10
+
11
+ ## ARGUMENTS
12
+
13
+ *URI*
14
+ The URI of the Repository to be installed.
15
+
16
+ ## OPTIONS
17
+
18
+ `-v`, `--[no-]verbose`
19
+ Enable verbose output.
20
+
21
+ `-q`, `--[no-]quiet`
22
+ Disable verbose output.
23
+
24
+ `--[no-]silent`
25
+ Silence all output.
26
+
27
+ `--[no-]color`
28
+ Enables color output.
29
+
30
+ `--[no-]rsync`
31
+ Installs the Repository using Rsync.
32
+
33
+ `--[no-]svn`
34
+ Installs the Repository using SubVersion (SVN).
35
+
36
+ `--[no-]hg`
37
+ Installs the Repository using Mercurial (Hg).
38
+
39
+ `--[no-]git`
40
+ Installs the Repository using Git.
41
+
42
+ ## FILES
43
+
44
+ *~/.ronin/*
45
+ Ronin configuration directory.
46
+
47
+ *~/.ronin/repos*
48
+ Installation directory for Ronin Repositories.
49
+
50
+ *~/.ronin/database.log*
51
+ Database log.
52
+
53
+ *~/.ronin/database.sqlite3*
54
+ The default sqlite3 Database file.
55
+
56
+ *~/.ronin/database.yml*
57
+ Optional Database configuration.
58
+
59
+ ## ENVIRONMENT
60
+
61
+ HOME
62
+ Specifies the home directory of the user. Ronin will search for the `.ronin`
63
+ configuration directory within the home directory.
64
+
65
+ ## EXAMPLES
66
+
67
+ `ronin install git://github.com/user/repo.git`
68
+ Installs a Ronin Repository using git.
69
+
70
+ `ronin install --git git@example.com:/home/secret/repo`
71
+ Installs a Ronin Repository using git over ssh.
72
+
73
+ ## AUTHOR
74
+
75
+ Postmodern <postmodern.mod3@gmail.com>
76
+
77
+ ## SEE ALSO
78
+
79
+ ronin-repos(1) ronin-uninstall(1) ronin-update(1)
@@ -0,0 +1,81 @@
1
+ # ronin-ips 1 "April 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin ips` [*options*]
6
+
7
+ ## DESCRIPTION
8
+
9
+ Manages IPAddresses.
10
+
11
+ ## OPTIONS
12
+
13
+ `-v`, `--[no-]verbose`
14
+ Enable verbose output.
15
+
16
+ `-q`, `--[no-]quiet`
17
+ Disable verbose output.
18
+
19
+ `--[no-]silent`
20
+ Silence all output.
21
+
22
+ `--[no-]color`
23
+ Enables color output.
24
+
25
+ `-D`, `--database` *URI*
26
+ The database to URI (`mysql://user:password@host/ronin`).
27
+
28
+ `--[no-]csv`
29
+ CSV output.
30
+
31
+ `--[no-]xml`
32
+ XML output.
33
+
34
+ `--[no-]yaml`
35
+ YAML output.
36
+
37
+ `--[no-]json`
38
+ JSON output.
39
+
40
+ `-i`, `--import` *FILE*
41
+ Imports HostNames from the FILE.
42
+
43
+ `-4`, `--[no-]v4`
44
+ Searches for IPv4 addresses.
45
+
46
+ `-6`, `--[no-]v6`
47
+ Searches for IPv6 addresses.
48
+
49
+ `-p`, `--with-ports` *PORT* [...]
50
+ Searches for IPAddresses associated with the user PORT(s).
51
+
52
+ `-I`, `--with-macs` *MAC* [...]
53
+ Searches for IPAddresses associated with the MAC Address(es).
54
+
55
+ `-I`, `--with-hosts` *HOST* [...]
56
+ Searches for IPAddresses associated with the HOST(s).
57
+
58
+ `-l`, `--[no-]list`
59
+ Lists the IPAddresses.
60
+
61
+ `-L`, `--lookup` *IP*
62
+ Looks the IPAddresses associated with the IP Address.
63
+
64
+ ## FILES
65
+
66
+ *~/.ronin/*
67
+ Ronin configuration directory.
68
+
69
+ *~/.ronin/database.log*
70
+ Database log.
71
+
72
+ *~/.ronin/database.sqlite3*
73
+ The default sqlite3 Database file.
74
+
75
+ *~/.ronin/database.yml*
76
+ Optional Database configuration.
77
+
78
+ ## AUTHOR
79
+
80
+ Postmodern <postmodern.mod3@gmail.com>
81
+
@@ -0,0 +1,86 @@
1
+ # ronin-net-proxy 1 "April 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin net:proxy` [*options*] SERVER
6
+
7
+ ## DESCRIPTION
8
+
9
+ Starts the Ronin TCP/UDP Proxy.
10
+
11
+ ## ARGUMENTS
12
+
13
+ *SERVER*
14
+ The `host:port` of the server to proxy.
15
+
16
+ ## OPTIONS
17
+
18
+ `--[no-]tcp`
19
+ Enables or disables TCP mode.
20
+
21
+ `--[no-]udp`
22
+ Enables or disables UDP mode.
23
+
24
+ `--[no-]hexdump`
25
+ Enables or disables hexdump mode.
26
+
27
+ `--host` HOST
28
+ The HOST the proxy will listen on. Defaults to "0.0.0.0".
29
+
30
+ `--port` PORT
31
+ The PORT the proxy will listen on.
32
+
33
+ `--rewrite-client` */REGEXP/:STRING*
34
+ Replace REGEXP with STRING in every client message.
35
+
36
+ `--rewrite-server` */REGEXP/:STRING*
37
+ Replace REGEXP with STRING in every server message.
38
+
39
+ `--rewrite` */REGEXP/:STRING*
40
+ Replace REGEXP with STRING in every message.
41
+
42
+ `--ignore-client` */REGEXP/*
43
+ Ignore messages from the client matching the REGEXP.
44
+
45
+ `--ignore-server` */REGEXP/*
46
+ Ignore messages from the server matching the REGEXP.
47
+
48
+ `--ignore` */REGEXP/*
49
+ Ignore messages matching the REGEXP.
50
+
51
+ `--close-client` */REGEXP/*
52
+ Closes the connection if the client sends a message matching the REGEXP.
53
+
54
+ `--close-server` */REGEXP/*
55
+ Closes the connection if the server sends a message matching the REGEXP.
56
+
57
+ `--close` */REGEXP/*
58
+ Closes the connection if the client or server sends a message matching the
59
+ REGEXP.
60
+
61
+ `--reset-client` */REGEXP/*
62
+ Reset the connection if the client sends a message matching the REGEXP.
63
+
64
+ `--reset-server` */REGEXP/*
65
+ Reset the connection if the server sends a message matching the REGEXP.
66
+
67
+ `--reset` */REGEXP/*
68
+ Reset the connection if the client or server sends a message matching the
69
+ REGEXP.
70
+
71
+ `-v`, `--[no-]verbose`
72
+ Enable verbose output.
73
+
74
+ `-q`, `--[no-]quiet`
75
+ Disable verbose output.
76
+
77
+ `--[no-]silent`
78
+ Silence all output.
79
+
80
+ `--[no-]color`
81
+ Enables color output.
82
+
83
+ ## AUTHOR
84
+
85
+ Postmodern <postmodern.mod3@gmail.com>
86
+
@@ -0,0 +1,77 @@
1
+ # ronin-repos 1 "APRIL 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin repos` [*options*] [*REPO*]
6
+
7
+ ## DESCRIPTION
8
+
9
+ Lists Ronin Repositories.
10
+
11
+ ## ARGUMENTS
12
+
13
+ *REPO*
14
+ The name of the Repository to list.
15
+
16
+ ## OPTIONS
17
+
18
+ `-v`, `--[no-]verbose`
19
+ Enable verbose output.
20
+
21
+ `-q`, `--[no-]quiet`
22
+ Disable verbose output.
23
+
24
+ `--[no-]silent`
25
+ Silence all output.
26
+
27
+ `--[no-]color`
28
+ Enables color output.
29
+
30
+ `-D`, `--database` *URI*
31
+ The database to URI (`mysql://user:password@host/ronin`).
32
+
33
+ `--domain` *DOMAIN*
34
+ Searches for Repositories installed from the DOMAIN.
35
+
36
+ `-n`, `--named` *NAME*
37
+ Searches for Repositories with the given NAME.
38
+
39
+ `-t`, `--titled` *TITLE*
40
+ Searches for Repositories with the similar TITLE.
41
+
42
+ `-d`, `--describing` *DESCRIPTION*
43
+ Searches for Repositories with the similar DESCRIPTION.
44
+
45
+ `-L`, `--licensed-under` *LICENSE*
46
+ Searches for Repositories with the given LICENSE (`MIT`).
47
+
48
+ ## FILES
49
+
50
+ *~/.ronin/*
51
+ Ronin configuration directory.
52
+
53
+ *~/.ronin/repos*
54
+ Installation directory for Ronin Repositories.
55
+
56
+ *~/.ronin/database.log*
57
+ Database log.
58
+
59
+ *~/.ronin/database.sqlite3*
60
+ The default sqlite3 Database file.
61
+
62
+ *~/.ronin/database.yml*
63
+ Optional Database configuration.
64
+
65
+ ## ENVIRONMENT
66
+
67
+ HOME
68
+ Specifies the home directory of the user. Ronin will search for the `.ronin`
69
+ configuration directory within the home directory.
70
+
71
+ ## AUTHOR
72
+
73
+ Postmodern <postmodern.mod3@gmail.com>
74
+
75
+ ## SEE ALSO
76
+
77
+ ronin-install(1) ronin-uninstall(1) ronin-update(1)
@@ -0,0 +1,67 @@
1
+ # ronin-uninstall 1 "April 2012" Ronin "User Manuals"
2
+
3
+ ## SYNOPSIS
4
+
5
+ `ronin uninstall` [*options*] *REPO*
6
+
7
+ ## DESCRIPTION
8
+
9
+ Uninstalls a Ronin Repositories.
10
+
11
+ ## ARGUMENTS
12
+
13
+ *REPO*
14
+ The name of the Repository to uninstall.
15
+
16
+ ## OPTIONS
17
+
18
+ `-v`, `--[no-]verbose`
19
+ Enable verbose output.
20
+
21
+ `-q`, `--[no-]quiet`
22
+ Disable verbose output.
23
+
24
+ `--[no-]silent`
25
+ Silence all output.
26
+
27
+ `--[no-]color`
28
+ Enables color output.
29
+
30
+ ## EXAMPLES
31
+
32
+ `ronin uninstall repo`
33
+ Uninstalls the repository with with the name `repo`.
34
+
35
+ `ronin uninstall repo@github.com`
36
+ Uninstalls the repository with the name `repo` and from `github.com`.
37
+
38
+ ## FILES
39
+
40
+ *~/.ronin/*
41
+ Ronin configuration directory.
42
+
43
+ *~/.ronin/repos*
44
+ Installation directory for Ronin Repositories.
45
+
46
+ *~/.ronin/database.log*
47
+ Database log.
48
+
49
+ *~/.ronin/database.sqlite3*
50
+ The default sqlite3 Database file.
51
+
52
+ *~/.ronin/database.yml*
53
+ Optional Database configuration.
54
+
55
+ ## ENVIRONMENT
56
+
57
+ HOME
58
+ Specifies the home directory of the user. Ronin will search for the `.ronin`
59
+ configuration directory within the home directory.
60
+
61
+ ## AUTHOR
62
+
63
+ Postmodern <postmodern.mod3@gmail.com>
64
+
65
+ ## SEE ALSO
66
+
67
+ ronin-install(1) ronin-repos(1) ronin-update(1)