Skip to content

Commit

Permalink
feat: improve output logging and fix HTML escaping
Browse files Browse the repository at this point in the history
- Fix HTML escaping in jsonToHTML function
- Add complete file paths to output logging
- Improve results saving feedback
- Optimize code structure for better readability
  • Loading branch information
Your Name committed Dec 7, 2024
1 parent 5f1eb3f commit 24b7215
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func main() {
}

func saveResults(results []stage.Node, format string) error {

outputDir := "output"
if err := os.MkdirAll(outputDir, 0755); err != nil {
return fmt.Errorf("failed to create output directory: %v", err)
Expand Down
1 change: 1 addition & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ tcp_ports:
- 9200 # Elasticsearch HTTP
- 9300 # Elasticsearch Transport
- 9050 # aoweiya
- 9095
- 9666
- 9999
- 10000 # Network Data Management
Expand Down
2 changes: 1 addition & 1 deletion pkg/stage/assets/raw_fingerprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"(?i)SSH"
]
},
"netgear": {
"netgear-router": {
"type": "router",
"manufacturer": "netgear",
"patterns": [
Expand Down

0 comments on commit 24b7215

Please sign in to comment.