In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Some time ago, I went to a friend's company to see their GuestWIF password according to the company name plus the year, month and day. I thought it was interesting to change it automatically, so as to prevent the WIFI password of the company from being leaked out.
Specific steps:
1: add the script as follows
# months array:local months ("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec") # get Date:local ds [/ system clock get date] # convert name of month to number:local month [: pick $ds 0 3]; local mm ([: find $months $month-1] + 1); if ($mm < 10) do= {: set mm ("0". $mm);} # set $ds to format YYYY-MM-DD:set ds ([: pick $ds 7 11]. $mm. [: pick $ds 4 6]): log info "date format: $ds sss" # so the final password is in the format XXX20161010 / interface wireless security-profilesset 1 wpa2-pre-shared-key= "XXX$ds" # where 1 is the configuration file serial number of guest
2: add scheduled tasks
/ system scheduler add interval=1d name= "update wifi pass" on-event= "/ system script run AutoUpdateGuestPasswd" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=oct/20/2016 start-time=01:00:00
The most important thing is how to get the formatted date. Nothing else. Scripts are different from normal shell.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.