Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new features to edge browser on bscan v0.1.6-beta #16

Merged
merged 5 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is the latest version introduces the use of the module and its features.

### Features

- [#16](https://github.com/BarcaWebCloud/bscan/pull/16): New features for windows. Gratitude @ahsouza!
- [#15](https://github.com/BarcaWebCloud/bscan/pull/15): New features for windows. Gratitude @ahsouza!


Expand All @@ -22,8 +23,10 @@ This is the latest version introduces the use of the module and its features.
<!-- save scan progress with sqlite3 -->
Add features for **Windows** platform:

- **Get Autocomplete Information For Phones, Emails, Addresses, Names and More Used In Chrome Browser** [only Windows on moment]
- **Get Login Information Used In Chrome Browser** [only Windows on moment]
- **Get Autocomplete Information For Phones, Emails, Addresses, Names and More Used In Chrome & Edge Browser** [only Windows on moment]
- **Get All History Used In Edge Browser** [only Windows on moment]
- **Get All Login Information Used In Edge Browser** [only Windows on moment]
- **Get All Media Like Video And Images Used In Edge Browser** [only Windows on moment]

<br>

Expand Down
40 changes: 38 additions & 2 deletions include/swares/scan_browser.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace bscan {
public:
Browser();
~Browser() = default;

// chrome browser
std::string chromehistory();
std::string chromemedia();
std::string chromelogin();
Expand All @@ -40,6 +40,19 @@ namespace bscan {
std::string chromeautofillphones();
std::string chromeautofillnames();
std::string chromeautofillprofiles();
// edge browser
std::string edgehistory();
std::string edgemedia();
std::string edgelogin();
std::string edgepreferences();
std::string edgesecurepreferences();
std::string edgeshortcuts();
std::string edgeautofillemails();
std::string edgeautofilladdresses();
std::string edgeautofillphones();
std::string edgeautofillnames();
std::string edgeautofillprofiles();
//
std::string profile();
std::string visitedlinks();
std::string watched();
Expand All @@ -49,7 +62,7 @@ namespace bscan {
std::string extensions();
std::string apps();
std::string logs();

// chrome browser
static std::string getChromeHistory();
static std::string getChromeMedia();
static std::string getChromeLogin();
Expand All @@ -60,6 +73,17 @@ namespace bscan {
static std::string getChromeAutoFillPhones();
static std::string getChromeAutoFillNames();
static std::string getChromeAutoFillProfiles();
// edge browser
static std::string getEdgeHistory();
static std::string getEdgeMedia();
static std::string getEdgeLogin();
static std::string getEdgeShortcuts();
static std::string getEdgeAutoFillEmails();
static std::string getEdgeAutoFillAddresses();
static std::string getEdgeAutoFillPhones();
static std::string getEdgeAutoFillNames();
static std::string getEdgeAutoFillProfiles();
//
static std::string getProfile();
static std::string getVisitedLinks();
static std::string getWatched();
Expand All @@ -71,6 +95,7 @@ namespace bscan {
static std::string getLogs();

private:
// chrome browser
std::string _chromehistory;
std::string _chromemedia;
std::string _chromelogin;
Expand All @@ -81,6 +106,17 @@ namespace bscan {
std::string _chromeautofillphones;
std::string _chromeautofillnames;
std::string _chromeautofillprofiles;
// edge browser
std::string _edgehistory;
std::string _edgemedia;
std::string _edgelogin;
std::string _edgeshortcuts;
std::string _edgeautofillemails;
std::string _edgeautofilladdresses;
std::string _edgeautofillphones;
std::string _edgeautofillnames;
std::string _edgeautofillprofiles;
//
std::string _profile;
std::string _visitedlinks;
std::string _watched;
Expand Down
65 changes: 65 additions & 0 deletions src/libs/info/scan_browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace bscan {

Browser::Browser(){};

// TO GOOGLE CHROME
std::string Browser::chromehistory() {
if (_chromehistory.empty()) {
_chromehistory = getChromeHistory();
Expand Down Expand Up @@ -94,4 +95,68 @@ namespace bscan {
return _chromeautofillprofiles;
}

// TO MICROSOFT EDGE
std::string Browser::edgehistory() {
if (_edgehistory.empty()) {
_edgehistory = getEdgeHistory();
}
return _edgehistory;
}

std::string Browser::edgemedia() {
if (_edgemedia.empty()) {
_edgemedia = getEdgeMedia();
}
return _edgemedia;
}

std::string Browser::edgelogin() {
if (_edgelogin.empty()) {
_edgelogin = getEdgeLogin();
}
return _edgemedia;
}

std::string Browser::edgeshortcuts() {
if (_edgeshortcuts.empty()) {
_edgeshortcuts = getEdgeShortcuts();
}
return _edgeshortcuts;
}

std::string Browser::edgeautofillemails() {
if (_edgeautofillemails.empty()) {
_edgeautofillemails = getEdgeAutoFillEmails();
}
return _edgeautofillemails;
}

std::string Browser::edgeautofilladdresses() {
if (_edgeautofilladdresses.empty()) {
_edgeautofilladdresses = getEdgeAutoFillAddresses();
}
return _edgeautofilladdresses;
}

std::string Browser::edgeautofillphones() {
if (_edgeautofillphones.empty()) {
_edgeautofillphones = getEdgeAutoFillPhones();
}
return _edgeautofillphones;
}

std::string Browser::edgeautofillnames() {
if (_edgeautofillnames.empty()) {
_edgeautofillnames = getEdgeAutoFillNames();
}
return _edgeautofillnames;
}

std::string Browser::edgeautofillprofiles() {
if (_edgeautofillprofiles.empty()) {
_edgeautofillprofiles = getEdgeAutoFillProfiles();
}
return _edgeautofillprofiles;
}

};
Loading