Skip to content

Conversation

dimeko
Copy link
Contributor

@dimeko dimeko commented May 8, 2025

Hello,

This pull request enhances the exported file by including the command line arguments of the executed command.
This may provides users with clear visibility into the specific command that generated the raw output. User will be able to make sure an output file has been generated with, for example -l 5 and not -l 1.

'"{}"'.format(arg) if ' ' in arg else arg is added in order to keep " " in the outputted string.

File export with command line arguments:
json:

{
  "cmd": "-d example.com -s -f ../example.com -l 1 -b all",
  "hosts": [
    ".example.com",
   ]
}

xml:

<?xml version="1.0" encoding="UTF-8"?>
   <theHarvester>
      <cmd>-d example.com -s -f ../example.com -l 1 -b all</cmd>
      <email>email@example.com</email>
      ...
   </theHarvester>

@L1ghtn1ng L1ghtn1ng merged commit 083d5eb into laramies:master May 9, 2025
3 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants