Skip to content

Instantly share code, notes, and snippets.

@TakesxiSximada
Created May 3, 2020 03:52
Show Gist options
  • Save TakesxiSximada/da53ca599b2a582279f95b4e24b7872c to your computer and use it in GitHub Desktop.
Save TakesxiSximada/da53ca599b2a582279f95b4e24b7872c to your computer and use it in GitHub Desktop.
Generate sample password
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`;
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