<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3537&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / wifi tool (wefe as a C program)]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3537</link>
		<description><![CDATA[The most recent posts in wifi tool (wefe as a C program).]]></description>
		<lastBuildDate>Mon, 25 May 2020 10:17:26 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22089#p22089</link>
			<description><![CDATA[<p>It all works now, posting this connected via wefe <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>If deleting the plain-text password line in /etc/wefe/saved/* is too much trouble then perhaps consider using <span class="bbc">chmod 600</span> to prevent non-root users from reading the file.</p><div class="quotebox"><cite>siva wrote:</cite><blockquote><div><p>I also modified the wpasupplicant driver list (idk what others are popular and might be in there as well)</p></div></blockquote></div><p>There are only two drivers for wpa_supplicant(8).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 25 May 2020 10:17:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22089#p22089</guid>
		</item>
		<item>
			<title><![CDATA[Re: wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22083#p22083</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>...the README.md which says to run all three steps as root.</p></div></blockquote></div><p>Fixed.</p><div class="quotebox"><blockquote><div><p>Btw you seem to have broken your Makefile the last commit by adding spaces around the = in the PREFIX, FOLDER &amp; CONFIG lines.</p><p>An uninstall target in the Makefile would also be nice even though it&#039;s only a folder and a single binary.</p></div></blockquote></div><p>Fixed.</p><div class="quotebox"><blockquote><div><p>Another error with the new version...space in my SSID <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></div></blockquote></div><p>Definitely fixed. (It wasn&#039;t pointing to the def.config_file path.)</p><div class="quotebox"><blockquote><div><p>Sorry to be a pain here, I&#039;m sure I&#039;m doing something wrong.</p></div></blockquote></div><p>You&#039;re not --- the code was the pain ^_^</p>]]></description>
			<author><![CDATA[dummy@example.com (siva)]]></author>
			<pubDate>Mon, 25 May 2020 01:25:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22083#p22083</guid>
		</item>
		<item>
			<title><![CDATA[Re: wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22078#p22078</link>
			<description><![CDATA[<div class="quotebox"><cite>siva wrote:</cite><blockquote><div><p>Is the suggestion to prevent root from running anything other than make install? I&#039;m confused.</p></div></blockquote></div><p>Sorry, no, I was just commenting on the README.md which says to run all three steps as root.</p><p>Btw you seem to have broken your Makefile the last commit by adding spaces around the = in the PREFIX, FOLDER &amp; CONFIG lines.</p><p>An uninstall target in the Makefile would also be nice even though it&#039;s only a folder and a single binary.</p><p>Another error with the new version:</p><div class="codebox"><pre><code>E485:~# wefe add &#039;1337 h4x0r&#039; 
sh: 1: cannot create /etc/wefe/wefe-sup/1337: Directory nonexistent
Errors occurred while adding 1337 h4x0r.Done.
E485:~#</code></pre></div><p>And yes, I do have a space in my SSID <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I created /etc/wefe/wefe-sup manually and tried again:</p><div class="codebox"><pre><code>E485:~# wefe add &#039;1337 h4x0r&#039;
Errors occurred while adding 1337 h4x0r.Done.
E485:~#</code></pre></div><p>A file was created at /etc/wefe/wefe-sup/1337 (so perhaps the space was the issue), the content was:</p><div class="codebox"><pre><code>Passphrase must be 8..63 characters</code></pre></div><p>I didn&#039;t see my passphrase as I typed it in, not sure if that is intended (I can see it when I use wpa_passphrase(8) manually).</p><p>Sorry to be a pain here, I&#039;m sure I&#039;m doing something wrong.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 24 May 2020 23:58:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22078#p22078</guid>
		</item>
		<item>
			<title><![CDATA[Re: wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22074#p22074</link>
			<description><![CDATA[<p>Thanks, I&#039;m glad you like it <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> And thanks for the feedback. Here&#039;s some followup:</p><div class="quotebox"><blockquote><div><p>I edited config.h and substituted wlp4s0 in place of wlan0 then ran...</p></div></blockquote></div><p>That one&#039;s on me. The scanner library wasn&#039;t accepting the data type for the def.iface. To test, I just dropped &quot;wlan0&quot; directly in that function. Then I forgot to remove it. That should be fixed now.</p><p>I also modified the wpasupplicant driver list (idk what others are popular and might be in there as well), and changed iwconfig -&gt; iw ^_^</p><div class="quotebox"><blockquote><div><p>It is considered bad practice to run the make command as root, I would prefer to build the package under my normal user and only invoke root privileges to actually install the package (as demonstrated above).</p></div></blockquote></div><p>Is the suggestion to prevent root from running anything other than make install? I&#039;m confused.</p><p>Finally, the removal-of-plaintext-password idea is legit. Not sure how this will look in C, but I went ahead and added a config option in the meantime, just as a reminder.</p>]]></description>
			<author><![CDATA[dummy@example.com (siva)]]></author>
			<pubDate>Sun, 24 May 2020 22:25:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22074#p22074</guid>
		</item>
		<item>
			<title><![CDATA[Re: wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22056#p22056</link>
			<description><![CDATA[<div class="quotebox"><cite>siva wrote:</cite><blockquote><div><p>Love it</p></div></blockquote></div><p>^ This. Thanks for sharing <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I can&#039;t get it to work in my Debian buster box though.</p><p>I edited config.h and substituted <span class="bbc">wlp4s0</span> in place of <span class="bbc">wlan0</span> then ran</p><div class="codebox"><pre><code>make clean
make
# make install</code></pre></div><p>And tried to run it as root with</p><div class="codebox"><pre><code>E485:~# wefe scan
Incorrect network interface: No such device
E485:~1#</code></pre></div><p>What am I missing here? Does it matter that I&#039;m using systemd?</p><div class="quotebox"><cite>siva wrote:</cite><blockquote><div><p>critique</p></div></blockquote></div><p>It is considered bad practice to run the <span class="bbc">make</span> command as root, I would prefer to build the package under my normal user and only invoke root privileges to actually install the package (as demonstrated above).</p><p>The wpa_supplicant(8) command can be passed a list of potential drivers so your utility can be made to support older devices OOTB by changing the <a href="https://gitlab.com/souperdoupe/thom-utils/-/blob/master/wefe/config.h#L13" rel="nofollow">relevant line in config.h</a> to</p><div class="codebox"><pre><code>	&quot;-B -Dnl80211,wext&quot;,				// wpasupplicant options</code></pre></div><p>The iwconfig(8) command is now considered obsolete so you could replace that with iw(8) instead: <a href="https://wireless.wiki.kernel.org/en/users/Documentation/iw/replace-iwconfig" rel="nofollow">https://wireless.wiki.kernel.org/en/use … e-iwconfig</a></p><p><a href="https://gitlab.com/souperdoupe/thom-utils/-/blob/master/wefe/active.h#L70" rel="nofollow">For example</a>:</p><div class="codebox"><pre><code>				&quot;/sbin/iw %s connect %s&quot;,</code></pre></div><p>And finally the wpa_passphrase(8) command generates a configuration file that contains a (commented-out) line with the password in plain text so perhaps it would be best to delete that line. Not sure if your utility already does this though, my C skills are nearly non-existent and I can&#039;t try it out for myself at the moment.</p><p>HTH</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 24 May 2020 12:17:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22056#p22056</guid>
		</item>
		<item>
			<title><![CDATA[wifi tool (wefe as a C program)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22030#p22030</link>
			<description><![CDATA[<p>My wifi script is now a C program. It was a way to practice C for a course.</p><p>The biggest caveat is there&#039;s no config right now. That means, you&#039;ll have to rebuild it if your wireless card identifies as anything other than wlan0. Not sure if it would be better to rebuild for a different wireless interface, pass it as an argument, what the standard is for C config files, etc.</p><p>Anyways.</p><p>Love it. Hate it. Give valuable critique about it.</p><p><a href="https://gitlab.com/souperdoupe/thom-utils/-/tree/master/wefe" rel="nofollow">https://gitlab.com/souperdoupe/thom-uti … aster/wefe</a></p>]]></description>
			<author><![CDATA[dummy@example.com (siva)]]></author>
			<pubDate>Sat, 23 May 2020 14:40:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22030#p22030</guid>
		</item>
	</channel>
</rss>
