77import click
88from jinja2 import Environment , FileSystemLoader , TemplateError
99
10- # Import osinttracker exporter module
11- from plugins .export_osintracker import OsintTrackerExporter
10+ # Import osintracker exporter module
11+ from plugins .export_osintracker import OsintrackerExporter
1212
1313
1414class Shodan2DB :
@@ -386,25 +386,25 @@ def export(verbose, exportfile, database, template_file):
386386 sys .exit (1 )
387387
388388 @staticmethod
389- def export_osinttracker (verbose , database , output_file , alias ):
389+ def export_osintracker (verbose , database , output_file , alias ):
390390 """
391- Export Shodan2DB data to osinttracker JSON format.
391+ Export Shodan2DB data to osintracker JSON format.
392392 Creates entities (IPs, domains, hostnames) and relationships between them.
393393 """
394394 # Ensure the database file has the correct extension
395395 if not database .endswith (".db" ):
396396 database = f"{ database } .db"
397397
398398 if verbose :
399- print (f"[+] Exporting to osinttracker format..." )
399+ print (f"[+] Exporting to osintracker format..." )
400400
401401 try :
402402 # Create exporter instance and export
403- exporter = OsintTrackerExporter (database , verbose , alias )
403+ exporter = OsintrackerExporter (database , verbose , alias )
404404 exporter .export_to_json (output_file )
405405
406406 if verbose :
407- print (f"[+] osinttracker export completed successfully!" )
407+ print (f"[+] osintracker export completed successfully!" )
408408
409409 except FileNotFoundError as e :
410410 print (f"[-] Error: { e } " , file = sys .stderr )
@@ -455,7 +455,7 @@ def parse(verbose, database, input_file):
455455# Define the export command with options for database, report file, and verbose mode
456456@click .command (
457457 name = "export" ,
458- help = "Export data from database (HTML report or osinttracker JSON)." ,
458+ help = "Export data from database (HTML report or osintracker JSON)." ,
459459 context_settings = dict (help_option_names = ["-h" , "--help" ]),
460460)
461461@click .option (
@@ -486,27 +486,27 @@ def parse(verbose, database, input_file):
486486 is_flag = False ,
487487 flag_value = "shodan" ,
488488 type = str ,
489- help = "Central entity name for osinttracker export (default: shodan)." ,
489+ help = "Central entity name for osintracker export (default: shodan)." ,
490490)
491491@click .option (
492492 "--osint-output" ,
493- default = "assets_osinttracker .json" ,
493+ default = "assets_osintracker .json" ,
494494 type = str ,
495- help = "Output path for osinttracker JSON file." ,
495+ help = "Output path for osintracker JSON file." ,
496496 show_default = True ,
497497)
498498@click .option ("--verbose" , "-v" , is_flag = True , help = "Verbose mode." )
499499def export (verbose , database , output , template_file , osint , osint_output ):
500500 """
501501 Export data from the database.
502502
503- Generates both HTML report and osinttracker JSON format.
503+ Generates both HTML report and osintracker JSON format.
504504
505505 Examples:
506506 Default files: shodan2db.py export -d database.db
507507 Custom HTML path: shodan2db.py export -d database.db -o rapport.html
508508 Custom entity: shodan2db.py export -d database.db --osint "Campaign"
509- Custom osinttracker output: shodan2db.py export -d database.db --osint-output custom.json
509+ Custom osintracker output: shodan2db.py export -d database.db --osint-output custom.json
510510 """
511511 # Always generate HTML report
512512 if output is None :
@@ -518,8 +518,8 @@ def export(verbose, database, output, template_file, osint, osint_output):
518518 template_file = template_file ,
519519 )
520520
521- # Always generate osinttracker JSON with the specified entity name
522- Shodan2DB .export_osinttracker (
521+ # Always generate osintracker JSON with the specified entity name
522+ Shodan2DB .export_osintracker (
523523 verbose = verbose ,
524524 database = database ,
525525 output_file = osint_output ,
0 commit comments