Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco committed Jul 28, 2023
0 parents commit 2bcd413
Show file tree
Hide file tree
Showing 8 changed files with 1,546 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
files/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Visual Studio 2015/2017 cache/options directory
.vs/
17 changes: 17 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "qualysx"
version= "2.0.0"
edition = "2021"
authors = ["abut0n"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
atty = "0.2.14"
chrono = "0.4.22"
colored = "2.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.93"
serde-xml-rs = "0.6.0"
reqwest = { version = "0.11", features = ["blocking", "json"] }
tokio = { version = "1", features = ["full"] }
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# qualysx
Fast and reliable rust implementation of xml to json parser for qualys scans.

:arrow_right: [ddt file](https://qualysguard.qg2.apps.qualys.eu/scan-1.dtd)

## How to use it

```bash
qualysx -x qualys_report.xml > out.json
[WRN] Use with caution. You are responsible for your actions.
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
```

## ... or use qualysx in your projects

```rust
use qualysx::from_str;

fn main() {

let file: String = std::fs::read_to_string(xml).unwrap();
let scan: qualysx::Scan = qualysx::from_str(&file).unwrap();
let j = serde_json::to_string(&scan).unwrap();

println!("{}", j);
}
````
# Contribute

Contributions are always welcome! Please create a PR to add Github Profile.

## :pencil: License

This project is licensed under [GPL-3.0](https://opensource.org/license/gpl-3-0/) license.

## :man_astronaut: Show your support

Give a ⭐️ if this project helped you!
Loading

0 comments on commit 2bcd413

Please sign in to comment.