Some ‘security people are f*cking morons’ says Linus Torvalds
avatar

Posted in News, Security | Leave a comment

Count Number of Lines in a Visual Studio Project
avatar

This is a trick to count the number of lines of code written in a Visual Studio Project.  From a command prompt type the following command in the root of the directory:

(dir -include *.cs,*.cpp,*.h,*.idl,*.asmx -recurse | select-string .).Count

Posted in News | Leave a comment

DUHK Crypto Attack Recovers Encryption Keys, Exposes VPN Connections, More
avatar

Posted in News, Security | Leave a comment

Project Fi Dialer Codes
avatar

Project Fi has some great features making it a good choice for use as you cellular provider. The only downside I have run into is sometimes the carrier switching doesn’t go as smoothly as you would like. That is where these codes come in, you can diagnose and fix your issue.

If you are having service issues you can easily check which carrier you are on by calling the number:

*#*#fiinfo#*#* or *#*#344636#*#*

Once you know the carrier you were on you can then manually switch to one of the other ones using these codes, the switch will last 30 minutes:

Sprint – *#*#fispr#*#* or *#*#34777#*#*

T-Mobil – *#*#fitmo#*#* or *#*#34866#*#*

You can also just jump carriers by using the next carrier code:

*#*#finext#*#* or *#*#346398#*#*

To return the phone back to normal carrier switching you can use the following code:

*#*#fiauto#*#* or *#*#342886#*#*

If you are getting an activation error message you can try to repair the activation by using the following number:

*#*#fixme#*#* or *#*#34963#*#*

Cheat Sheet

Force Jump to Sprint: *#*#34777#*#*

Force Jump to T-Mobile: *#*#34866#*#*

Force Jump to Next Carrier: *#*#346398#*#*

Turn On Auto Switch: *#*#342886#*#*

Repair Bad Activation: *#*#34963#*#*

Current Network Info: *#*#344636#*#*

Posted in News | Leave a comment

Using iptables to route OpenVPN traffic
avatar

To have your vpn traffic be able to reach the internet you just need to add the following iptable rules:

iptables -A FORWARD -i tun0 -j ACCEPT
iptables -A FORWARD -i tun0 -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

This would take the tunnel adapter of tun0 and route the traffic through eth0 for the vpn subnet of 192.168.0.0.

Posted in Arch, CentOS, Fedora, Guides, Linux, Networking | Tagged , | Leave a comment