{"id":2889,"date":"2016-12-20T11:06:06","date_gmt":"2016-12-20T09:06:06","guid":{"rendered":"http:\/\/9v.lt\/blog\/?p=2889"},"modified":"2022-01-19T08:34:36","modified_gmt":"2022-01-19T06:34:36","slug":"mikrotik-guest-user-generator","status":"publish","type":"post","link":"https:\/\/9v.lt\/blog\/mikrotik-guest-user-generator\/","title":{"rendered":"MikroTik guest user generator"},"content":{"rendered":"<p>Good day y&#8217;all. What a shitty winter this year is, ain&#8217;t it? It&#8217;s nearly Christmas and there&#8217;s absolutely no snow only rain, sadness and depression.<br \/>\nNever the less, to keep myself occupied through this period I try to continue my own projects or make my life easier by writing up some kinda automated scripts. One of which being a MikroTik guest user generator for WebFig v6.38rc7 interface, because I hate thinking up names and random passwords&#8230;<br \/>\nYou&#8217;d think that with version 6 of this software the developers would have made a random user generation feature of some sort and a way to print it out quickly, but nope. There might be a feature that our sysadmin needs to enable, but he can&#8217;t be bothered with such crazy tasks, so meh.<br \/>\n<!--more--><br \/>\nSo what I made is a Greasemonkey userscript that runs locally on your machine. It generates a random user, random password, sets the default validity period and also adds an export button which is a link to our information system module that simply outputs static HTML with given variables plugged in.<br \/>\nI created this by testing on v6.38rc7 in Firefox, so it might break on other versions, or it might not. Your mileage may vary.<\/p>\n<p>To use it, install Greasemonkey for FF or Tampermonkey for Chrome, install this script <a href=\"http:\/\/9v.lt\/projects\/other\/MikroTik_randomizer.user.js\" target=\"_blank\" rel=\"noopener\">from my projects folder here<\/a>, change the values to fit your needs and try it out.<\/p>\n<p>However I wasn&#8217;t able to make this work on Chrome, but I don&#8217;t use Chrome, so I didn&#8217;t try.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good day y&#8217;all. What a shitty winter this year is, ain&#8217;t it? It&#8217;s nearly Christmas<\/p>\n","protected":false},"author":2,"featured_media":2892,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,750],"tags":[970,968,974,975,972,971,969,973,976],"class_list":["post-2889","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-software-projects","tag-grease","tag-greasemonkey","tag-javascript","tag-mikrotik","tag-monkey","tag-tamper","tag-tamper-monkey","tag-userscript","tag-webfig"],"_links":{"self":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts\/2889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/comments?post=2889"}],"version-history":[{"count":0,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/posts\/2889\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/media\/2892"}],"wp:attachment":[{"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/media?parent=2889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/categories?post=2889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/9v.lt\/blog\/wp-json\/wp\/v2\/tags?post=2889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}