21y4d/nmapAutomator

MacOS Scan Output Error

xShuden opened this issue · 2 comments

I use in macos 13.2.1 (22D68). I see this error output

`
Host is likely running Unknown OS!

---------------------Starting Port Scan-----------------------

sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.* ((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.\ ...": bad flag in substitute command: '}'
sed: 1: "/elapsed/{s/.undergoin ...": bad flag in substitute command: '}'
sed: 1: "/% done/{s/.About (. ...": bad flag in substitute command: '}' ] 0% done
sed: 1: "/elapsed/{s/Stats: (.
...": bad flag in substitute command: '}'
sed: 1: "/remaining/{s/.
((.*\ ...": bad flag in substitute command: '}'
`

install gnu-sed and setting up an alias within the script to point to the gnu-sed solves this issue.

MacOS doesn't ship with GNU-sed which this script expects.

Use Homebrew to install GNU-sed, then replace all instances of sed with gsed