Hardhat-Enterprises / Deakin-Detonator-Toolkit

Deakin Detonator Toolkit redesign using Tauri, React and Mantine.
16 stars 31 forks source link

[Bug]: enum4linux fails to run #1052

Closed cjboyd1999 closed 5 hours ago

cjboyd1999 commented 6 days ago

Name of Bug

Enum4Linux Fails to Run

What Happened?

The integrated tool enum4linux does not run as expected when compared to the output of a terminal. As shown below, the command fails when run from PT-GUI but succeeds if run from the terminal:

From PT-GUI:

$ enum4linux -U  127.0.0.1

enum4linux v0.9.1 (http://labs.portcullis.co.uk/application/enum4linux/)
Copyright (C) 2011 Mark Lowe (mrl@portcullis-security.com)

Simple wrapper around the tools in the samba package to provide similar 
functionality to enum.exe (formerly from www.bindview.com).  Some additional 
features such as RID cycling have also been added for convenience.

Usage: ./enum4linux.pl [options] ip

From terminal:

image

Additional note: this bug appears to be present in the main branch and was found whilst testing changes made to the enum4linux tool in https://github.com/Hardhat-Enterprises/Deakin-Detonator-Toolkit/pull/1044.

As the issue does not appear to be caused by the PR itself, the PR has been approved for merging and will be merged into main.

Steps to Reproduce

  1. Run enum4linux from PT-GUI
  2. Run enum4linux from terminal
  3. Compare the different results; terminal works as expected, PT-GUI fails to execute
sreedharashwin commented 5 days ago

Yes, this is when there is no input provided for the second text box (parameters), there is no check to see if the value exists. Adding that validation now.