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

ComputerFile, no output to CSV? #15

Closed
6a7070 opened this issue Jan 4, 2018 · 8 comments

Comments

Projects
None yet
2 participants
@6a7070
Copy link

commented Jan 4, 2018

Thank you for making this great tool. I really appreciate it.

I am looking to enumerate just a subset of the computers in a domain. I found the 'ComputeFile' parameter in Sharphound.ps1 and tried that.

Unfortunately, it did not save any output to CSV format when I used the CSVFolder parameter. Sharphound does successfully enumerate the hosts, because I see data in the Bloodhound.bin file. The only problem is that no csv file appears to be created.

Am I doing something wrong?

This is my command (after loading the Sharphound.ps1 script):

Invoke-BloodHound -CollectionMethod LoggedOn -ComputerFile computers.txt -CSVFolder 'C:\Data'

My computers.txt file contains the following:

hostname1
hostname2

Thank you!

@6a7070 6a7070 changed the title ComputerName parameter missing? ComputerFile, no output to CSV? Jan 4, 2018

@6a7070

This comment has been minimized.

Copy link
Author

commented Jan 4, 2018

I tried running the executable with the ComputerFile parameter and it worked great. Output in csv format worked. Will use that.

@6a7070 6a7070 closed this Jan 4, 2018

@6a7070

This comment has been minimized.

Copy link
Author

commented Jan 4, 2018

Unfortunately, now the exe version isn't outputing the csv file. I don't know what happened. I had to kill the executable prematurely because it started to do a full scan (my fault). When I went to try using ShareHound.exe again, no CSV output would be saved to disk. The bloodhound.bin file does exist with data, just no CSV file. Could you look into this?

By the way, I'm still using the ComputerFile parameter. If I do a full scan (no options), it does produce a CSV file.

Thanks.

@6a7070

This comment has been minimized.

Copy link
Author

commented Jan 4, 2018

reopening

@6a7070 6a7070 reopened this Jan 4, 2018

@rvazarkar

This comment has been minimized.

Copy link
Collaborator

commented Jan 9, 2018

I'm looking into this. For some reason ping is failing when hostnames are resolved from a file...which makes no sense.

@6a7070

This comment has been minimized.

Copy link
Author

commented Jan 19, 2018

Thanks for replying to my post and figuring out the issue. What are the chances you think it will be fixed?

@rvazarkar

This comment has been minimized.

Copy link
Collaborator

commented Mar 2, 2018

Well it took a while, but I think this is finally fixed. The fix makes no sense to me, but it seems to be correct.

dc54f21

Try it and let me know

@rvazarkar

This comment has been minimized.

Copy link
Collaborator

commented Mar 21, 2018

Going to close this since theres been no response

@rvazarkar rvazarkar closed this Mar 21, 2018

@6a7070

This comment has been minimized.

Copy link
Author

commented Mar 21, 2018

Thanks for fixing this. I haven't tried the fix yet, but I did try your fix for using the 'no ping' flag and I was able to scan the target hosts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.