-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made it possible to save the results to a file
- Loading branch information
1 parent
4f9164e
commit 952ab0a
Showing
4 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.IO; | ||
|
||
namespace WPCracker | ||
{ | ||
public class SaveResult | ||
{ | ||
public async void UsersToFileAsync(string uri, string outFilePath, WpUserInfo res, bool firstLineOfResult) | ||
{ | ||
var url = new Uri(uri).Host; | ||
var fLine = firstLineOfResult ? | ||
@$"{Environment.NewLine}$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$${Environment.NewLine}Username(s) to {url}" : "\n"; | ||
|
||
await File.AppendAllTextAsync(Path.Combine(outFilePath, "WP-Users.txt"), @$"{fLine} | ||
ID:.............{res.Id} | ||
NAME:...........{res.Name} | ||
DESCRIPTION:....{res.Description} | ||
LINK:...........{res.Link} | ||
LINK:...........{res.Link} | ||
URL:............{url} | ||
SLUG:...........{res.Slug}"); | ||
} | ||
|
||
public async void LoginCredentialsToFileAsync(string uri, string outFilePath, string user, string pwd) | ||
{ | ||
var url = new Uri(uri).Host; | ||
|
||
await File.AppendAllTextAsync(Path.Combine(outFilePath, "WP-Logins.txt"), $@"Login Credentials to {url} | ||
Username: {user} | ||
Password: {pwd}{Environment.NewLine} | ||
"); | ||
} | ||
} | ||
} |
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