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

v0.1.5 get all login information, history and media used in chrome browser to windows #14

Merged
merged 25 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
33 changes: 28 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,37 @@

# Changelog

## v0.1.4
## v0.1.5

### BScan

This is the latest version introduces the use of the module and its features.

<br>

## v0.1.5 [2023-04-03]

### Features

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


### Release Notes

<!-- save scan progress with sqlite3 -->
Add features for **Windows, Linux & Apple** platform:

- **Get All History Used In Chrome Broeser** [only Windows on moment]
- **Get All Login Information Used In Chrome Browser** [only Windows on moment]
- **Get All Media Like Video And Images Used In Chrome Browser** [only Windows on moment]

<br>

## v0.1.4 [2023-03-30]

### Features

- [#12](https://github.com/BarcaWebCloud/bscan/pull/12): New features for Windows OS. Gratitude @ahsouza!
- [#13](https://github.com/BarcaWebCloud/bscan/pull/13): New features for Windows OS. Gratitude @ahsouza!


### Release Notes
Expand All @@ -22,7 +42,10 @@ Add features for **Windows** platform:

- **List Program Files and Folders, Personal Documents & Public** [only Windows on moment]
- **List Recent Items, Home Directory, Downloads, Musics, Videos/Images & Searched Items** [only Windows on moment]
- **List Images Saved & Camera Pictures** [only Windows on moment]
- **List History PowerShell Commands** [only Windows on moment]

<br>

## v0.1.3 [2023-03-28]

Expand All @@ -45,7 +68,7 @@ Add features for **Windows** platform:
- **List Home Directory Files and Folders** [only Windows on moment]
- **List Recently Accessed Files and Folders** [only Windows on moment]


<br>

## v0.1.2 [2023-03-18]

Expand All @@ -65,6 +88,7 @@ Add features for **Windows** and **Linux** platforms:
- **Get Packages Installed into the System** [ Linux ]
- **Get Hostname, Name & Version into the System** [Windows | Linux]

<br>

## v0.1.1 [2023-03-13]

Expand All @@ -81,6 +105,7 @@ Add features for **MacOS**, **Linux** and **Windows** platforms:
- **Collect Information About MotherBoard, CPU, GPU, Disk, Memory-RAM, OS, Battery**
- **Get legal information from the User logged into the Linux System** [only Linux on moment]

<br>

## v0.1.0 [2023-03-11]

Expand All @@ -97,8 +122,6 @@ Add features for **MacOS**, **Linux** and **Windows** platforms:

Add settings for compiler on **MacOS**, **Linux** and **Windows** platforms:

- **C++ 17**
- **GYP config**
- **Functions to Hardwares Info**
- **Functions to Softwares Info**

Expand Down
35 changes: 26 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Barca, Inc., Serra/ES, BRA | email: opensource@barca.com | GitHub: @BarcaWebCloud

cmake_minimum_required(VERSION 3.16)
project(bscan VERSION 0.1.3 DESCRIPTION "A library for collecting information about a computing device's Hardware & Software" HOMEPAGE_URL "https://store.barca.com/overview/modules/bscan" LANGUAGES CXX C)
project(bscan VERSION 0.1.5 DESCRIPTION "A library for collecting information about a computing device's Hardware & Software" HOMEPAGE_URL "https://store.barca.com/overview/modules/bscan" LANGUAGES CXX C)

message(STATUS "cmake version ${CMAKE_VERSION}\n\nproject: ${PROJECT_NAME}\nversion: ${PROJECT_VERSION}\ndescription: ${PROJECT_DESCRIPTION}\n${PROJECT_NAME}-api: https://api.bwc-${PROJECT_NAME}.com/v${PROJECT_VERSION_MAJOR}/")

Expand Down Expand Up @@ -66,7 +66,7 @@ elseif(WIN32)
endif()

#set(CMAKE_GENERATOR_CC gcc)
set(CMAKE_CXX_FLAGS "-utf-8 -lwsock32")
set(CMAKE_CXX_FLAGS "-utf-8")
foreach(def IN ITEMS
-D_HAS_EXCEPTIONS=0
-DWIN32_LEAN_AND_MEAN
Expand All @@ -76,13 +76,24 @@ elseif(WIN32)
endforeach()

foreach(dir IN ITEMS
"$ENV{USERPROFILE}\\.bscan"
"$ENV{USERPROFILE}\\.bscan\\win32"
"$ENV{USERPROFILE}\\.bscan\\win32\\v${PROJECT_VERSION}"
"$ENV{USERPROFILE}\\.bscan\\win32\\v${PROJECT_VERSION}\\bin"
"$ENV{USERPROFILE}\\.bscan\\win32\\v${PROJECT_VERSION}\\lib"
"$ENV{USERPROFILE}\\.bscan\\win32\\v${PROJECT_VERSION}\\www"
"$ENV{USERPROFILE}\\.bscan\\win32\\v${PROJECT_VERSION}\\log")
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\readme.md"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\cache"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\logs"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\logs\\${PROJECT_VERSION}.log"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\storage"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\storage\\cache"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\storage\\${PROJECT_VERSION}.txt"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\storage\\db\\${PROJECT_VERSION}.db"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\settings"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\settings\\${PROJECT_VERSION}.default.conf"
"$ENV{USERPROFILE}\\AppData\\Local\\Barca\\packages\\${PROJECT_NAME}\\${PROJECT_VERSION}\\settings\\${PROJECT_VERSION}-preferences.conf"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}\\win32"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}\\win32\\v${PROJECT_VERSION}"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}\\win32\\v${PROJECT_VERSION}\\bin"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}\\win32\\v${PROJECT_VERSION}\\lib"
"$ENV{USERPROFILE}\\.${PROJECT_NAME}\\win32\\v${PROJECT_VERSION}\\www")
if (EXISTS ${dir})
message(STATUS "directory exist")
else()
Expand Down Expand Up @@ -165,6 +176,8 @@ find_path(_check_include
WMIwrapper.h,
bscan.h,
dirent.h,
config.h,
sqlite3.h,
"utils/directory.h",
"utils/string.h",
"utils/stringutils.h",
Expand All @@ -182,6 +195,7 @@ find_path(_check_include
"hwares/scan_ram.h",
# softwares header
"swares/swares.h",
"swares/scan_browser.h",
"swares/scan_os.h",
"swares/scan_system.h"
PATHS "${CMAKE_SOURCE_DIR}/include"
Expand All @@ -198,6 +212,8 @@ add_subdirectory(src/libs/info)

add_executable(bscan index.cpp "include/bscan.h")

add_library(sqlite3 "src/libs/sqlite3/sqlite3.c")

if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND
${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "8" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9.1") OR
("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
Expand All @@ -206,3 +222,4 @@ if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND
endif()

target_link_libraries(bscan PUBLIC bscan::BScan)
target_link_libraries(bscan PRIVATE sqlite3)
61 changes: 52 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@

**BSCAN** is a library for Node.js that provides information about the hardware and software of a computing device. Allowing Developers to utilize scanning capabilities in their web applications

<br>

1. [Hardwares](/docs/hwares/intro.md) get information about RAM, CPU, GPU, Disk, Motheboard...
2. [Softwares](/docs/swares/intro.md) get information about operating system and installed applications
2. [Softwares](/docs/swares/intro.md) get information about Operating System, Apps, User, Services...

<br>
<br>

## Requirements

It is necessary that you have installed the programs below to use **BSCAN** in developer mode.

<br>

### To Linux

<br>

- [Python](https://www.python.org/) **v3.1** or greater
- [Compilers C/C++](https://school.barca.com/edu/ti/overview/c++/compiler/intro.html)
- [MinGW/GCC](https://www.mingw-w64.org)
Expand All @@ -27,8 +32,12 @@ It is necessary that you have installed the programs below to use **BSCAN** in d
- [Small Device](https://sdcc.sourceforge.net)
- [Node.js](https://nodejs.org/) **v8** or greater

<br>

### To Windows

<br>

- [Python](https://www.python.org/) **v3.1** or greater
- [Compilers C/C++](https://school.barca.com/edu/ti/overview/c++/compiler/intro.html)
- [MinGW/GCC](https://www.mingw-w64.org)
Expand All @@ -45,17 +54,24 @@ It is necessary that you have installed the programs below to use **BSCAN** in d

## Obtaining BScan

<br>

View the [changelog](/CHANGELOG.md) for the latest updates and changes by version.

<br>

### Binary Downloads

Binary downloads are available from the [BWC downloads](https://cloud.barca.com/downloads)
page or from each [GitHub Releases](https://github.com/BarcaWebCloud/bscan/releases) page.


<br>
<br>

## Build From Source

### Build From Source
<br>

**BSCAN** requires C++ version 17 or newer, the CMakelists requires GNU cmake.

Expand All @@ -69,9 +85,11 @@ page or from each [GitHub Releases](https://github.com/BarcaWebCloud/bscan/relea

<br>

### Build Executable BSCAN in Your Environment
## Build Executable BSCAN in Your Environment

#### To Linux
### To Linux

<br>

1. Run `cmake CMakeLists.txt` from the source directory

Expand All @@ -81,11 +99,18 @@ page or from each [GitHub Releases](https://github.com/BarcaWebCloud/bscan/relea
```
2. Now run `make all` or `make bscan` to compile the main program

#### To Windows
<br>

### To Windows

<br>

Check the **gcc** version of your System. BSCAN requires version greater than **17**.
We can view a list of *Makefile* generators with the command: `cmake -G`.
Here shows an example to use the **MinGW** *Makefile* generator:

<br>

1. Run `cmake -G "MinGW Makefiles" <file-cmake>` from the source directory

```shell
Expand All @@ -96,18 +121,29 @@ Here shows an example to use the **MinGW** *Makefile* generator:

<br>

### Build Module BSCAN Node.js in Your Environment
## Build Module BSCAN Node.js in Your Environment

<br>

1. Install required `npm` packages


```shell
npm install
```
2. Generate boilerplate in the root directory of bscan module
<br>

1. Generate boilerplate in the root directory of bscan module


```shell
node-gyp configure

```
3. Now to build bscan native we will need to run the command to generates a **DLL** file with `.node` extension. This file will be placed inside **build/Release** directory
<br>

1. Now to build bscan native we will need to run the command to generates a **DLL** file with `.node` extension. This file will be placed inside **build/Release** directory


```shell
node-gyp build
Expand All @@ -117,6 +153,8 @@ Here shows an example to use the **MinGW** *Makefile* generator:

## Getting Started

<br>

Create a **javascript** file to call the module


Expand All @@ -127,19 +165,24 @@ const bscan = require("./build/Release/bscan.node");
console.log(bscan.info())
```

<br>

Now run the program

```shell
node main.js
```

<br>
<br>

## Documentation

[Latest Release Documentation](https://cloud.barca.com/docs/bscan/latest/)

For documentation on the latest development code see the [documentation index](/docs).

<br>

## Contributing

Expand Down
10 changes: 10 additions & 0 deletions include/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef CONFIG_H_IN
#define CONFIG_H_IN

#define MODULE_NAME "bscan"
#define VERSION_MAJOR "1"
#define VERSION_MINOR "5"
#define VERSION_PATCH "0.1.5"
#define MODULE_VERSION "0.1.5"

#endif // CONFIG_H_IN
Loading