Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - lucid

Pages: [1] 2 3 ... 10
General discussion / Lazy fucker
« on: December 16, 2014, 07:09:51 pm »
That's who I've been the past few weeks.

I work from 5pm to 1/2am every time that I work. So generally the earliest I can get up is around 10am or so since I don't end up getting to bed until 3 or 4 in the morning. This means that, if I ever want to get anything done, I need to be productive all day before work. Recently, this has been a lot easier said then done.

I'm trying to cut back on smoking pot before work, this just adds to the lack of productivity for me, and I'm better off waiting until night time. Unfortunately this is more difficult to actually achieve also. As of now, my current schedule has me waking up at around 10am, but I don't actually get started on anything productive until around 12 or 1pm. The time in between then is spent walking the dog, and then afterwards smoking weed and watching a TV show epidsode or two. THEN I finally get to work on something, but that only leaves me around 3 hours after taking time to get ready for work and eat. Three hours daily IMO isn't enough time to really spend on something you want to become really good at.

What do you guys to when you go through bouts of laziness/lethargy and all you want to do is watch TV or something? This has been going on for weeks now...

Operating System / Custom public wifi connect script | DHCP issues
« on: December 02, 2014, 04:04:58 am »
This would also fit in the Scripting Language board as well, but I think it's more fitting here.

In the past, I've used wicd, NetworkManager, and things of that nature. However, I always had issues with both of them disconnecting constantly and hardware compatibility or whatever. This was a long time ago. Ever since I've simply been using wpa_supplicant + dhcpcd, or netctl on Arch. Simple is better, and I've never had connection issues doing it manually. The only trouble is that it's not always so convenient to do this  when you are on the move connecting to public wifi here and there. So I wrote a simple bash script to automate this. It takes the ssid and password as command-line arguments.
wifi_util Jimwifi password123
For some reason, even though it appears to do the same thing as when I connect to my home network with wpa_supplicant and dhcpcd, it fails with varied results. Here's the code first:
Code: Bash
  1. #!/bin/bash
  2. # Quick public wifi connect tool
  4. CONFIG=/home/user/dir/dir/wpa_supplicant.conf
  6. # Clean up dhcp leases and process files
  7. rm /var/lib/dhcpcd/* &>/dev/null
  8. rm /var/run/dhcpcd-* &>/dev/null
  9. rm /var/run/wpa_supplicant/*
  11. # Easy creation of wpa_supplicant
  12. echo "ctrl_interface=/var/run/wpa_supplicant" > $CONFIG
  13. echo -e "ctrl_interface_group=root\n" >> $CONFIG
  14. wpa_passphrase "$1" "$2" >> $CONFIG
  16. # Connect
  17. wpa_supplicant -B -Dwext -i wlan0 -c $CONFIG
  18. dhcpcd wlan0

This is what I normally see:
dhcpcd[2065]: version 6.0.5 starting
dhcpcd[2065]: wlan0: waiting for carrier
dhcpcd[2065]: wlan0: carrier acquired
dhcpcd[2065]: wlan0: soliciting an IPv6 router
dhcpcd[2065]: wlan0: soliciting a DHCP lease
dhcpcd[2065]: wlan0: offered from
dhcpcd[2065]: wlan0: leased for 86400 seconds
dhcpcd[2065]: wlan0: adding host route to via  < these seem related
dhcpcd[2065]: wlan0: ipv4_addroute: Network is unreachable           < and significant
dhcpcd[2065]: wlan0: adding route to
dhcpcd[2065]: wlan0: adding default route via
dhcpcd[2065]: forked to background, child pid 2107

The rest of the time it times out with this:
dhcpcd[1994]: version 6.0.5 starting
dhcpcd[1994]: wlan0: waiting for carrier
dhcpcd[1994]: timed out
dhcpcd[1994]: allowing 8 seconds for IPv4LL timeout
dhcpcd[1994]: wlan0: carrier acquired
dhcpcd[1994]: wlan0: soliciting an IPv6 router
dhcpcd[1994]: wlan0: soliciting a DHCP lease
dhcpcd[1994]: timed out
dhcpcd[1994]: exited

I'm not sure why this isn't working. Right before any error messages, I see that it successfully initializes wpa_supplicant, every time. So the problem seems to lie with DHCP somehow. Normally, I would connect simply with /etc/rc.d/rc.local:
Code: Text
  1. #!/bin/sh
  2. #
  3. # /etc/rc.d/rc.local:  Local system initialization script.
  4. # Put scripts you want executed on shutdown in:
  5. # /etc/rc.d/rc.local_shutdown
  7. # Load alternative modules
  8. modprobe rtl8188ee
  10. # Connect to wireless internet
  11. wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf < Same thing my script does
  12. dhcpcd wlan0                                                              <
As you can see it's the same thing really. It just initializes wpa_supplicant and runs dhcpcd on startup. Both /etc/wpa_supplicant.conf and my custom wpa_supplicant.conf file are valid and get initialized successfully. I don't get it.

Anonymity and Privacy / Posting code - How much do we want to let them see?
« on: November 25, 2014, 08:52:01 pm »
I feel like it's been months since I've actually posted anything besides moderator comments and such, so well get back into it with a new question I've stumbled on.

What with all the government spying and whatnot, it feels like anonymity is completely and entirely dead and we should all just give up. I mean let's be honest. Not that I matter much to them, but I'm sure that the NSA or whoever may be watching knows already that the IRL me is lucid on the internet, and probably has a pretty good idea of my beliefs, ideals, and behaviors to an extent.

However, this doesn't mean we should just lay down and die right? I came across an interesting question related to privacy and watching your back online when I got stuck decided whether or not to post code I wrote that contains some...... questionable features. Actually, I think it would be more appropriate to say downright illegal as fuck. Now I realized I could put disclaimers in the code comments, and always post the code with a message like:
and while that should legally protect me to some small degree, we all know that it's actually not just what they can prove, and that it does matter what they know.

My question is this; GIven that the NSA is watching us and at some point will or has seen everything we do on the web, is it no longer safe to post code that you've created if it has some sort of illegal features in it?

What do you guys think?

Hardware / Unix + HD failure + compatibility?
« on: October 31, 2014, 08:40:27 pm »
Yeah, I'm a fucking mess.

I finally finished building my firewall. I got the last piece in, my network card. So the next step I took was to install pfSense on the hard drive. For some fucking reason, doing this fucked everything up. As soon as I reboot, I find that the screen hangs on the startup splash screen. No errors, nothing. Pfsense worked fine when it was just the live CD, but as soon as I install it to my harddrive it cannot detect the keyboard, and it won't auto-boot past the start screen. It just hangs there forever. I cannot get into the BIOS or the Boot menu, because the keyboard doesn't work. The dumbass fucking computer guy at the nearby store told me that it's either the IDE cable or the hard drive failing. Since I have an old HD lying around I decided fuck it, I'll just try to install it on this one and see if the other harddrive really did fail, which is unlikely, and completely infuriating, considering I just bought this thing new a week ago.

So, I plug in the old piece of shit, and install. Sure enough, same exact symptoms. Everything works perfectly, until I reboot after installing, then it stops detecting the peripherals, and just hangs forever at the start screen. So, it's not the IDE cable, and it's extremely unlikely that both of my harddrives just happen to fail the very second I install pfSense on them.

So my question is.. what the fuck is going on? I must be the only fucking idiot in the entire world who literally failed two harddrives by installing something on them..

General discussion / Galaxy S5 tiny storage
« on: October 21, 2014, 03:11:12 am »
So I am getting a new phone soon. I was planning on getting a Galaxy S5, but I read somewhere that they have terrible storage space due to the size of the ROM. Apparently if you get a 16gb, you'll only end up with around 8 or 9GB of space. I'm hoping to get a phone that I can also put all my music on, because I currently use some Zune garbage and that literally requires me to have an entire VM with usb capabilities just so I can load music onto it, because I don't have a Windows computer.

So, anyone have recommendations on Droids to get with plenty of space? Or, am I even correct? I've never owned a smartphone before so I don't know what I 'm doing.

Stay classy San Diego.

Scripting Languages / Array count inaccurate.
« on: September 27, 2014, 11:45:52 pm »
This should be really simple but for some reason it's not. All I'm trying to do is count the number of IP addresses in a file, and I really did not expect to have any trouble with this at all.

Code: Ruby
  1. reg =[0])
  2. rr += reg.scan /(?:\d{1,3}\.){3}\d{1,3}/
  4. puts rr.size
I've manually checked and there should be somewhere around 1000 ip addresses in the particular file I'm using. All this code does is look for IPs in the file using regex, and then puts all of the IPs into an array. Then it uses Ruby's .size method to count how many items are in the array. For some reason this is inaccurate though, telling me there's over 40,000 IPs in the file. Which is impossible. There's no way. The code used to look this this:
Code: Ruby
  1. reg =[0])
  2. rr = []
  3. r = reg.scan /(?:\d{1,3}\.){3}\d{1,3}/
  5. rr << r
  6. puts rr.size
But that always returned 1, no matter what. Now I know everyone in the world hates Ruby, but I feel like my particular problem has more to do with general coding concepts.

Hacking and Security / IPtables DNS problems
« on: August 25, 2014, 10:46:15 pm »
Ok seriously what the fuck. I've been working with this for awhile now and nothing has any change at all. I have an Arch box running as a DNS/DHCP server + firewall for a bunch of VMs. The VMs are on subnet and the Arch gateway is on the subnet. I have a static route set up so that all computers on can 'see' and vice versa. Until this point there was no problems and everything worked.

The symptoms:
- Everything works fine on the VMs for a minute or so, then the connection will drop and it will only be able to ping things on it's subnet(10.10.6.x), not including the gateway(

- When I troubleshoot, I find that it's a DNS issue. It seems that the VMs will intermittently fail to elicit a response from the DNS server. The connection goes down for around a minute, then comes back on for around a minute.

I've already turned off the firewall to make sure, and sure enough the internet is fine without it. So it's definitely something wrong with my firewall. So I'll show you:
Code: [Select]
# Generated by iptables-save v1.4.21 on Mon Aug 25 15:18:28 2014
:tcp_packets - [0:0]
:udp_packets - [0:0]

-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j tcp_packets
-A INPUT -p udp -m conntrack --ctstate NEW -j udp_packets

-A FORWARD -m conntrack --ctstate INVALID -j DROP
-A FORWARD -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A FORWARD -d -i vboxnet0 -p udp -m udp -m multiport --dports 53,67 -j ACCEPT
-A FORWARD -s -o vboxnet0 -p udp -m multiport --dports 53,67 -j ACCEPT

-A tcp_packets -p tcp -m multiport --dports 80,443,12444 -j ACCEPT
-A tcp_packets -p tcp -j DROP
-A udp_packets -p udp -m udp -m multiport --dports 53,67 -j ACCEPT
# Completed on Mon Aug 25 15:18:28 2014
I realize it's not the best firewall ever, but please try and only give criticism related to the problem at hand. Also, I'm almost 100% sure it's something wrong with the FORWARD chain. Thanks.

EDIT: Ok now it seems it's a problem with the Win7 VM only. I have an XP and a Xubuntu VM that both work perfectly fine, even when the Win7 can't ping anything outside of it's subnet. Hmm, I wonder why though.

Hacking and Security / Stupid CenturyLink router and port forwarding.
« on: August 16, 2014, 08:39:09 pm »
Ok this is really embarrassing that I have to make a post about it but I feel like I need an extra pair of eyes in case I'm missing something incredibly stupid. I'm just trying to do some port forwarding on my router so that I can SSH into my server when I go on vacation in a day. The way the router does it seems really fucking stupid. I'm using a CenturyLink C1000A, unfortunately.

The settings are a little vague to me so I'll just show you: As you can see the first option is to enter an IP address. That's obviously the LAN IP so I entered my server's LAN IP. We'll call it for now. The next setting being the Starting and Ending port. I'm assuming that's the port on which SSH is running on the server( So I set that to, we will say, 12222. Then I set the protocol to TCP and the remote port and IP information to anything. Then I leave my network and try to ssh by using the username on the SSH server and the WAN IP:
Code: [Select]
user@xx.xx.xx.xx < WAN IP address

So far all it's done is time out on the port. I've double checked, and it definitely works from inside the network. This fucking piece of trash shitstain fucking router fuckface shitlord piece of shit can't even fucking do some simple port forwarding. Why are the options so weird and vague. This is easy as fuck on other routers I don't get it.

EDIT: I also just tried enabling remote management, and as it turns out, this router simply just.... doesn't feel like it. Nothing works. I tried enabling remote management on port 445, then tried the WAN IP and that exact port and it just loads for awhile and then becomes a new tab. It just goes ahead and doesn't do whatever it is that I tell it to do when it comes to opening ports.

EDIT2: On top of all that. I went to scan the port that I am trying to forward from outside the network, and it shows up as filtered. So.... basically.... instead of doing what I told it to do, it literally just.... didn't. It did nothing at all. I disabled the firewall on the router completely, yet, it's still just completely firewalled. Literally just does the exact opposite of what I tell it to do.

EDIT3: I should also mention that my WAN settings are configured to use PPPoE, if I change it to anything else it screws up my network. I don't know if that has anything to do with it. But this pretty much just flat out doesn't work. I enabled remote console management over telnet, and guess fucking what? Port 23 is fucking filtered. Even though I explicitly opened it, and even though I completely disabled the firewall. It is somehow still fucking filtered. Same with my SSH port. Same with the remote HTTP management port. None of them. Nothing fucking works. It just flat out, completely, blatantly doesn't, fucking, work.


Hardware / Old desktop gets power but won't start.
« on: August 04, 2014, 07:55:35 pm »
I'm building a firewall out of an old desktop that I have, and currently the thingie won't turn on. The motherboard seems to be an Intel D845GVSR motherboard. Currently, when I plug in the psu to the wall, I see on the motherboard that a green light turns on right next to the heatsink. This lets me know that the PSU is actually supplying power to the motherboard. It also lets me know that there most likely isn't an issue with the mobo. On top of that, I literally just installed a brand spanking new CPU, so I know that most likely isn't the issue either. I've tried unplugging the RAM, the harddrive, and both. The green light comes on, but the computer still doesn't actually turn on.

Occasionally, it'll turn on for less then a second. The fan spins for no even one rotation, but it just barely starts to turn on. This originally happened when I was messing with the power button cable. It's also happened a few times when I unplug it from the wall and wait. When I plug it back it after awhile the same thing will happen.

What does this issue sound like it could be?

Scripting Languages / [Ruby]DNS Lookups - Need help improving
« on: July 29, 2014, 09:41:33 pm »
I have this code here:
Code: Ruby
  1. #!/usr/bin/env ruby
  4. require 'resolv'
  5. require 'socket'
  8. class Resolver
  11.     def initialize(hostname = nil)
  12.         @hostname = hostname
  13.     end
  16.     def is_host?(reg)
  17.         @hostname =~ /\w\.[a-zA-Z]{2,3}/
  18.     end
  21.     def is_ip?(reg)
  22.         @hostname =~ /(?:\d{1,3}\.){3}\d{1,3}/
  23.     end
  26.     def main
  27.         hosts = []
  29.         ARGV.empty? ? printf("Missing arguments!\n") : hosts << @hostname
  31.         begin
  32.             hosts.each do |r|
  33.                 if is_host?(r)
  34.                     puts Socket.getaddrinfo(r, nil)[0][2]
  35.                 elsif is_ip?(r)
  36.                     puts
  37.                 end
  38.             end
  40.         rescue Resolv::ResolvError
  41.             puts "Bad IP address!"
  42.         rescue SocketError
  43.             puts "Bad hostname!"
  44.         end
  45.     end
  47. end
  50. res =[0])
  51. res.main
It is working just fine. What it does is accept one argument, and based on the formatting of the argument it's does an appropriate lookup. So for example, if I type: ./dnslookup.rb, then it returns the IP address of On the other hand, if I type:
./dnslookup.rb, then it returns the domain name.

The code works just fine. I'm mainly just looking for input regarding how well it's been coded, and if it could be coded more efficiently, or utilize better methods. I've grown rather unsatisfied with my code recently and am trying to make more interesting, more dynamic, and basically more mature code. Too often I feel like I'm just using a ton of if statements to do the heavy lifting, and while it works, it's unsatisfying. So any input is appreciated.

Hardware / Is it worth it?
« on: July 15, 2014, 10:25:59 pm »
One if much more expensive but they both have the same chipset. Is it worth it to get the more expensive one?

Cheaper one

More expensive one

Operating System / VM Networking and dnsmasq
« on: June 29, 2014, 09:08:09 pm »
I've got a Arch DNS server(dnsmasq) and it runs a couple of VMs. These VMs are configured for bridged networking so they all how their own IP on the subnet. One machine in particular, a WinXP machine, I am trying to configure to use the host server as it's main DNS. I set it up to do so but when I try nslookup it consistently uses the secondary DNS server with an error:
Code: [Select]
Can't find server name for Non-existent domain
I can ping from XP and everything, but it won't use it as it's server. Is this a problem with VM networking?

Hacking and Security / IPtables practice firewall
« on: June 28, 2014, 11:43:26 pm »
I'm looking to set up an iptables firewall. The purpose of this particular firewall is for testing. I'm not using this to secure my network. It's extremely frustrating to try to google for "firewalls for penetration practice" or something like that, because all you find it "impenetrable firewalls"

So I'm looking for ideas on a good realistic firewall ruleset that I can practice bypassing. Suggestions?

Hacking and Security / Want to learn more about SCADA
« on: June 21, 2014, 07:08:34 am »
Some of you may know about SCADA technology, or at least what SCADA is. Some of you may have no clue what I'm talking about because it's still somewhat newish in the security industry. Anyway, I've had a strong interest in learning more about this topic for quite some time. There seems to be very little quality information on the web about learning how SCADA systems work, SCADA hacking, and so forth. Anytime I search for it all I find is stuff about Stuxnet.

Does anyone share this interest with me? Does anyone here already know about SCADA systems? Or some avenue of learning about them? Aside from Stuxnet, most of what I find is sites where you can sign up for classes on SCADA systems for the low low price of 4000 usd.

Scripting Languages / [Bash]For loop isn't looping
« on: June 18, 2014, 08:01:10 am »
I am a complete novice with bash(much to my dismay), and I got bored and tried writing some trivial script. It's not really working the way I want it to and I can't really figure out why.

Code: Bash
  1. #!/bin/sh
  3. OUT=($(cat domains.txt))
  5. for HOSTNAME in $OUT
  6. do
  7. echo "Getting name servers for [$HOSTNAME]"
  8.   nslookup -type=ns $HOSTAME
  9. done
The file it's working with:
Code: [Select]
However it only posts the results for I'm missing something simple but don't see it.

EDIT: Nvm, fixed it by storing lines into an array first.

Code: Bash
  1. #!/bin/sh
  3. array=()
  5. getArray() {
  6.   i=0
  7.     while read line
  8.     do
  9.         array[i]=$line
  10.         i=$(($i + 1))
  11.     done < $1
  12. }
  14. getArray "domains.txt"
  16. for HOSTNAME in "${array[@]}"
  17. do
  18. echo "Getting name servers for [$HOSTNAME]"
  19.   nslookup -type=ns $HOSTAME
  20. done
Though I admit to getting help from StackOverflow. I don't 100% understand how the array works.

Pages: [1] 2 3 ... 10

Intern0t SoldierX SecurityOverride programisiai
Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.