Created
May 3, 2020 03:52
-
-
Save TakesxiSximada/da53ca599b2a582279f95b4e24b7872c to your computer and use it in GitHub Desktop.
Generate sample password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Cwd qw(getcwd); | |
my $var_dir = "var"; | |
my $sec_list_repo = "git\@github.com:danielmiessler/SecLists.git"; | |
my $sec_list_repo_dir = "var/SecLists"; | |
my $top_dir = getcwd(); | |
`mkdir -p $var_dir`; | |
if (-e $sec_list_repo_dir and -d $sec_list_repo_dir) { | |
chdir $sec_list_repo_dir; | |
`git pull`; | |
} else { | |
`git clone --depth 1 $sec_list_repo var/SecLists`; | |
} | |
chdir $top_dir; | |
# 制御コードが邪魔してuniqでエラーするのでコメントアウト | |
# `cat $sec_list_repo_dir/Passwords/*.txt | uniq > .password-list.txt`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generate-password-list: | |
summary: Generate password list | |
command: perl generate-sample-password.pl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment