Skip to content

Commit

Permalink
updated Usage with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
urbanadventurer committed Sep 20, 2024
1 parent 4bb4c08 commit 64aa299
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Version 0.6 (20/9/2024)

* Update version
* Changed Homepage URL to HTTPS. Thanks @jbrandona119
* Update for Ruby v3.2.0 Deprecated File.exists? Thanks @bhallef
* Update for launching script from symlink. Thanks @RedSnorlaX
* Creates debian folder for Deb packages. Thanks @PalinuroSec
29 changes: 25 additions & 4 deletions username-anarchy
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#!/usr/bin/env ruby
# UsernameAnarchy - generate usernames
# by urbanadventurer
# by urbanadventurer (Andrew Horton)
#
# Anna Boom Key
#


## set up load paths. add the directory of the file currently being executed to the load path
real_file_path = File.dirname(File.realpath(__FILE__))
$LOAD_PATH.unshift(File.expand_path(real_file_path)) unless
$:.include?(real_file_path) || $LOAD_PATH.include?(File.expand_path(real_file_path))

$ROOT_DIR = File.expand_path(File.dirname(__FILE__)) + "/"
$VERSION = "0.5"
$VERSION = "0.6"

require 'optparse'
require 'getoptlong'
Expand Down Expand Up @@ -573,11 +572,33 @@ optparse = OptionParser.new do |opts|
$options[:verbose] = true
end

opts.separator "Usage examples:
# You know the name of a user but not the username format
./username-anarchy anna key
# You know the username format and names of users
./username-anarchy --input-file ./test-names.txt --select-format first.last
# You know the server is in France
./username-anarchy --country france --auto
# List username format plugins
./username-anarchy --list-formats
# Automatically recognise the username format in use (slow)
./username-anarchy --recognise j.smith
See README.md for more examples.
"

opts.on_tail('-h', '--help') do
puts opts


exit
end
opts.on_tail
opts.on_tail
end

begin
Expand Down

0 comments on commit 64aa299

Please sign in to comment.