Skip to content

Commit

Permalink
Merge pull request #10 from LimesKey/main
Browse files Browse the repository at this point in the history
small fix
  • Loading branch information
LimesKey authored Sep 18, 2023
2 parents 626b310 + 56976e3 commit 41fbcba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file renamed PasswordLLM.exe → PasswordLLM-64x.exe
Binary file not shown.
5 changes: 4 additions & 1 deletion PasswordGPT-Installer.ps1 → PasswordLLM-Installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ $tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
$download = "https://github.com/$repo/releases/download/$tag/$file"

if (!(Test-Path -Path ("$dir_path/$file") -PathType Leaf)) {
Write-Host "Downloading latest release for PasswordGPT to $dir_path/PasswordGPT-64x..."
Write-Host "Downloading latest release for PasswordGPT to $dir_path/$file..."
Invoke-WebRequest -Uri $download -OutFile "$dir_path/$file"
}
else {
Write-Host "Executable already exists, not downloading again!"
}

Write-Host "Downloading RockYou password database..."
Invoke-WebRequest -Uri $RockYou -Out $TempFile
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn password_list(password: String) -> Result<bool, ()> {
let file_lnk = file.path();
let file_lnk: Result<Lnk, _> = Lnk::try_from(file_lnk.as_path());
let file_lnk: Option<String> = file_lnk.unwrap().link_info.local_base_path;

let file_lnk: String = {
match file_lnk {
Some(x) => x,
Expand All @@ -144,6 +144,7 @@ async fn password_list(password: String) -> Result<bool, ()> {
}
}
};
println!("File : {:?}", file);
let file = Path::new(&file_lnk);
if file.exists() && file.is_file() {
println!("Found RockYou.txt located at {}", file.to_string_lossy());
Expand Down Expand Up @@ -178,10 +179,12 @@ async fn password_list(password: String) -> Result<bool, ()> {
}
}
else {
println!("Error 1, cannot find file {:?}, may not exist or be a file. {:?}", file.to_string_lossy(), file.file_name());
return Err(());
}
}
}
println!("Error 2");
Err(())
}

Expand Down

0 comments on commit 41fbcba

Please sign in to comment.