this post was submitted on 10 Apr 2024
275 points (97.6% liked)
Open Source
31224 readers
305 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Would you by any chance mind sharing? I was going to make my own, but a good starting point never hurts.
(feel free to say no, I don't want to impose)
Honestly I would if I could.
The reason I redo it is because I change work places... And it's one of those things I could actually bring with me no problem because it doesn't contain confidential data, but also since it's so trivial, I don't think of it until I'm on to the next place.
And I haven't made a new one since last change ๐
What I'd probably do today is to list out the constraints and what I'd like to have work, then ask ChatGPT or Bing AI to make it for me, e.g.;
The script should be error free, print out helpful error messages when something occurs and gracefully degrade using 'try/catch' or similar. As far as possible, it should use different functions internally to ensure modualirty and maintainability.
That would give you a Python or Bash script most likely. It's going to give you an 80% done script. Probably also experiment with feeding it a type of output you'd prefer. Hope that helps!
I'm sure I'm missing something, but can't nmap do all of this?
I'm actually looking at doing a wrapper around NMap. Personally I'm fine with "Just use NMap" as a solution, but I need something that's usable by people who know only a little about Linux and aren't super comfortable in the command line. So I want to do stuff like enumerating the interfaces and just letting them pick one to scan instead of having to specify a network. I'll probably work in a really basic UI using Dialog or something as well.
I usually have some specific goals I'd like to add, which is why this would be the barebones scaffolding.
That aside, I don't like the output from nmap ๐
Fair points.