-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag-security.html
87 lines (79 loc) · 3.82 KB
/
tag-security.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="alternate"
type="application/rss+xml"
href="https://www.birkey.co/rss.xml"
title="RSS feed for https://www.birkey.co/">
<title>BirkeyCo</title>
<link href="static/style.css" rel="stylesheet" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="static/safari-pinned-tab.svg" color="#5bbad5">
<link rel="alternate" type="application/rss+xml" title="RSS Feed for birkey.co" href="/rss.xml">
<meta name="author" content="Kasim Tuman">
<meta name="referrer" content="no-referrer">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1">
</head>
<body>
<div id="preamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;">
<a href="https://www.birkey.co/index.html" style="text-decoration: none;"><b>BIRKEY CONSULTING</b><br>
</a><hr/><div style="text-align: justify;display: inline-block; width: 100%;">
<a class="title" href="https://github.com/oneness">ABOUT</a> <a class="title" href="https://www.birkey.co/rss.xml">RSS</a> <a class="title" href="https://www.birkey.co/archive.html">ARCHIVE</a></div></div>
</center><br><br>
<div style="margin-bottom: 3ch;text-transform: none;"></div></div>
<div id="content">
<h1 class="title">Posts tagged "security":</h1>
<div class="post-date">05 Feb 2022</div><h1 class="post-title"><a href="https://www.birkey.co/2022-02-05-automate-openbsd-anonymous-public-wifi-login.html">Automate OpenBSD anonymous public wifi log in</a></h1>
<p>
Security is somewhat cat and mouse game. This does not mean however
you be careless or just live with what you are handed to when it comes
to protecting yourself from ill-intentioned actors out in the
wild. Generally, I recommend choosing security over convenience, speed
or shiny features for your offline and online computing needs. To
start with, you are much better protected if you start using secure
defaults of the system you are using. For example, Firefox has
<b>HTTPS-Only Mode</b> that you can enable especially if you find yourself
using public wifi. If you happen to use OpenBSD, you are in a treat
:). Below bash script will allow you to log in to public wifi using
random MAC addresses each time you connect to it: <b>NOTE:</b> iwm0 is the
wireless card name on my laptop and you need to replace it with yours.
</p>
<div class="org-src-container">
<pre class="src src-shell">#!/usr/bin/env bash
ssid="$1"
pass="$2"
doas ifconfig iwm0 up
sleep 3
echo Wireless card is up
if [[ -z "$pass" ]]; then
doas ifconfig iwm0 nwid "$ssid" lladdr random
echo Joining public $ssid
else
doas ifconfig iwm0 nwid "$ssid" wpakey "$pass"
echo Joining private $ssid
fi
sleep 3
doas dhcpleasectl iwm0
echo Renewing inet address
sleep 3
echo Visiting google.com to test connection
proxy=$(curl -s -L -I -o /dev/null -w '%{url_effective}' google.com)
firefox $proxy
</pre>
</div>
<div class="taglist"><a href="https://www.birkey.co/tags.html">Tags</a>: <a href="https://www.birkey.co/tag-openbsd.html">openbsd</a> <a href="https://www.birkey.co/tag-security.html">security</a> </div><div id="archive">
<a href="https://www.birkey.co/archive.html">Other posts</a>
</div>
</div>
<div id="postamble" class="status"><br><center>
<div style="display: inline-block; vertical-align:middle;"></div></div>
</body>
</html>