Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ I wrote a network manager in shell.. kind of

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š I wrote a network manager in shell.. kind of


๐Ÿ’ก Newskategorie: Linux Tipps
๐Ÿ”— Quelle: reddit.com

Basically the title. Ever since I started using arch linux (btw), I've been trying to continually shrink my footprint on my laptop. And network managers are kind of bloatware. All you need to run this is wpa_supplicant and dhcpcd.

What it is

It's a shell script that does the annoying wpa_supplicant sh!t. You know, like having to specify minimal configuration every time you want to scan. Or having the kill the process whenever you want to switch networks. Having to write a whole line of shell whenever you want to connect to a network yadda yadda I'm sick of it. So I made this :)

Functionality

Right now, it has two primary functions and one sub-function.

The first is the scan function. Pretty self explanatory. Except here you don't have to manually set a configuration file, exec scan, and then exec scan_results. You just exec # device scan.

โ€‹

# device scan

The second is the connect function. Again, self explanatory; It allows you to connect to networks. Right now, it might only work for WPA but public networks might work as well.. but that's not all my friends. YOU CAN [easily] SAVE A PROFILE. The nomenclature is # device connect [ssid] [passwd] and if you want to save it, you just add save to the end like so # device connect [ssid] [passwd] save [name]. The name is optional and if it stays unset, the config file will be named after the ssid.

โ€‹

# device connect [ssid] [passwd]

โ€‹

# device connect [ssid] [passwd] save [filename]

Lastly (for now), but certainly not least is the -s flag for the scan function...

Are you tired of having to reconnect to a network that you've been on? Yes you're too lazy to make a configuration file and now you have to ask for the password (and probably ssid) again. Well I was. And so was my girlfriend. Introducing... -s (search)

โ€‹

# device scan -s

Stick that bad boy at the end of scan like so # device scan -s and it will parse through your wpa_supplicant config files and test if any of them match up with currently available networks...

and then it asks you if you want to connect.

You can also just say "n" and it will continue parsing until you've denied every recognized config or accept one.

Compatibility

You need the coreutils, wpa_supplicant, and dhcpcd. It may or may not work on dmenu. If it works, the scan will be pointless. But it would be cool to connect to a network.

Shortcomings

I would imagine a lot of things. This small step basically covers my daily network needs. But I don't manage any servers or know anything about networking. The code is also not looking suuuuupppeeerrr hot since I've been up two nights in a row working on it. Also, it has to be run in root as of right now.

In terms of what happens if you f up your nomenclature... idk. It will probably just return some wpa_supplicant errors. But yeah the whole root thing is not ideal.

Future plans

Probably configuring ip is at the top of the list. I want to be able to specify and interface. In the future, I may just grep it from ip by default. Also, more wpa_cli functionality. Additionally, I need to figure out the alias commands in wpa_cli. I may do my bluetooth in the same .sh.

Final thoughts

I'm at the end thinking what if everyone has a bunch of shell scripts and I'm just another brick in the wall. But I just thought it was cool. I hope you guys do to. If anyone likes it, I can definitely post a more revised version of the script. Have a goo day.

submitted by /u/xhitcramp
[link] [comments] ...



๐Ÿ“Œ I wrote a network manager in shell.. kind of


๐Ÿ“ˆ 48.85 Punkte

๐Ÿ“Œ Mutter-Kind-Pass soll digital und zum Eltern-Kind-Pass werden


๐Ÿ“ˆ 26.02 Punkte

๐Ÿ“Œ Digitaler Eltern-Kind-Pass wird Mutter-Kind-Pass ablรถsen


๐Ÿ“ˆ 26.02 Punkte

๐Ÿ“Œ Kind Words 2 (lofi city pop) announced - a game about being kind to real people


๐Ÿ“ˆ 26.02 Punkte

๐Ÿ“Œ "Mein Kind, Dein Kind": So kรถnnt die Vox-Dokushow im TV und Stream sehen - alle Sendetermine


๐Ÿ“ˆ 26.02 Punkte

๐Ÿ“Œ Kind Words 2 (lofi city pop) announced - a game about being kind to real people


๐Ÿ“ˆ 26.02 Punkte

๐Ÿ“Œ I wrote a shell script to visualize your most used bash commands: ginh.sh


๐Ÿ“ˆ 25.14 Punkte

๐Ÿ“Œ My 11 year old son wrote a game in BASH Shell on Linux.


๐Ÿ“ˆ 25.14 Punkte

๐Ÿ“Œ This shell plugin I wrote writes your git commands


๐Ÿ“ˆ 25.14 Punkte

๐Ÿ“Œ I wrote a book on Linux CLI tools and Shell Scripting for beginner-intermediate users


๐Ÿ“ˆ 25.14 Punkte

๐Ÿ“Œ [OC] I Wrote a Window Manager, sara. It's Done (v1.0)


๐Ÿ“ˆ 22.12 Punkte

๐Ÿ“Œ I wrote a guide about turning your window manager into a desktop environment. Any constructive criticism would be appreciated!


๐Ÿ“ˆ 22.12 Punkte

๐Ÿ“Œ So, I wrote a terminal file manager based on an old DOS application.


๐Ÿ“ˆ 22.12 Punkte

๐Ÿ“Œ I wrote a super minimal, fast file manager in BASH v5+. Looking for testers/contributors


๐Ÿ“ˆ 22.12 Punkte

๐Ÿ“Œ This Neural Network Regeneratesโ€ฆKind Of!


๐Ÿ“ˆ 18.76 Punkte

๐Ÿ“Œ CyberRatings.org Announces Results from First-of-its-Kind Comparative Test on Cloud Network Firewall


๐Ÿ“ˆ 18.76 Punkte

๐Ÿ“Œ What kind of password manager should I get?


๐Ÿ“ˆ 17.96 Punkte

๐Ÿ“Œ shadowsocks-libev 3.1.0 ss-manager manager.c Shell Metacharacter privilege escalation


๐Ÿ“ˆ 17.86 Punkte

๐Ÿ“Œ shadowsocks-libev 3.1.0 ss-manager manager.c Shell Metacharacter erweiterte Rechte


๐Ÿ“ˆ 17.86 Punkte

๐Ÿ“Œ Having some fun with Network Namespaces; built a network performance monitor for my home network


๐Ÿ“ˆ 17.25 Punkte

๐Ÿ“Œ The Mirai DDoS botnet: Brian Krebs claims to know who wrote it


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ The Mirai DDoS botnet: Brian Krebs claims to know who wrote it


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ 34 'Highly Toxic Users' Wrote 9% of the Personal Attacks On Wikipedia


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ Show SN: I Wrote A CGI Script


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ The Man Who Wrote the Password Rules Regrets Doing So


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ A Bug in Browser Extension Grammarly, Now Patched, Could Have Allowed an Attacker To Read Everything Users Wrote Online


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ I wrote a quick start guide to LibreOffice bug analysis. What do you think?


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ I wrote a 'dynamic' wallpaper setter inspired by apple's but is less restrictive


๐Ÿ“ˆ 17.18 Punkte

๐Ÿ“Œ [OC] I wrote a X11 screensaver that actually does what I want.


๐Ÿ“ˆ 17.18 Punkte











matomo