Compile OpenSSL from source on old Ubuntu

Hello,

If your version of Ubuntu is no longer supported you should update…
But in the meantime you could fix the broken or insecure packages on this way…

Note: Before continue check if you can get from a trusty source the package on DEB compiled that match your OS and architecture (and install it with: “dpkg -i file.deb”)


//before aptget: check that the sources are working!!!
//install prerequisites
apt-get install libssl-dev make gcc
//create a folder, download (openssl in this case, but can apply to any package) and decompress
wget http://openssl.org/source/openssl-1.0.1j.tar.gz
tar xfz openssl-1.0.1.tar.gz
//change to folder
cd openssl-*
//configure (take note of the paths!)
./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
//compile
make
//install!
sudo make install

//use sudo if necessary (not just for make, for all commands)
//then if everything went ok check the version
openssl version -a

If you specifically do this to fix heartbleed or another critical vulnerability that leaked information, remember to replace SSL certificates with new ones and change users credentials…

//info from:
http://wiki.openssl.org/index.php/Compilation_and_Installation#Intel
http://mariobrandt.de/archives/linux/upgrading-openssl-on-debian-6-squeeze-or-ubuntu-8-04-hardy-456/
http://askubuntu.com/questions/133806/getting-an-error-when-using-make-command-installing-aircrack-ng-on-ubuntu-12
http://ubuntuforums.org/showthread.php?t=825560ddd

Regards,
AC.

Posted in Linux, Medium Technical, Security | Tagged , , , , , , , , , | Comments Off on Compile OpenSSL from source on old Ubuntu

Battery Drain Samsung Galaxy Note 3 – Fix

Hello,

To correctly identify the problem I recommend you to use “GSam Battery Monitor”.
Then under “App Usage” you can directly access the Android App Info settings and kill (“force stop” and “turn off”) the apps/services that are over using your battery.
In my case was “Google+” and “Samsung Link” (I never used any of those and were safe to disable).

Links:
https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=es

Regards,
AC.

Posted in Basic Technical | Tagged , , , , , , | Comments Off on Battery Drain Samsung Galaxy Note 3 – Fix

Heartbleed

Hello,

heartbleed

For “one time” is safer to be on Windows…
Disease checker: http://filippo.io/Heartbleed/

AC.

Posted in Security | Tagged , , , | Comments Off on Heartbleed

Getting rid of the spam on WorPress

Hello,

There are plenty of bots that crawl the web day after day searching for WordPress blogs to fill them with URLs in order to get publicity (SEO) for some sites… For example the case of my anonymous blog (this one) never got a real comment, but day after day it got around ~7 spammy comments…

Knowing a little bit about how to do and how the bots work, on the 99.99% of the cases they will go for the standard site/layout and will automatically fill the comment field and sent it. And successfully on low number of cases due blog missconfiguration, or so many real comments that could mix some real/spam comment those spam messages get live…

So there will be 2 ways to get rid of bots, setting up a filter like “Akismet” that will analyze all the comments and based on IP and word analysis will mark the comments as spam or not… (Anyway the comments will or could flood your spam folder and also ~10% will pass to you directly)
Or a most straight forward method will be change the normal site layout with a plug in or manually, for example to rename or add new fields, so the bots won’t know how to proceed. For this case I used the “WP-reCAPTCHA” plugin; it automatically add a captcha field to all the comments (and other forms if you want) and wont let nothing pass if the captcha is not correctly solved.

More Info:
http://wordpress.org/plugins/wp-recaptcha/

Regards,
AC

Posted in Basic Technical | Tagged , , , , | Comments Off on Getting rid of the spam on WorPress

Deserializing JSON on .NET

Hello,

You can use the .Net classes that come with the framework “System.Web.Script.Serialization” that are a pain on the ass to understand. But if you do you can go with it… Should be something like:

Dim serializer As New JavaScriptSerializer()
Dim deserializedResult = serializer.DeserializeObject(“JSON string”)
‘deserialize… parse… etc…

Or you can simplify your life by using the free library “Json.NET”, and create the classes  by using the “jsontodatacontract” tool. Then just with “one” line of code you have a nice easily readable variable:

Dim deserializedResult as YourClassName = Newtonsoft.Json.JsonConvert.DeserializeObject(Of TwitterSearchResult)(“JSON string”)

Sources:
http://blogs.msdn.com/b/carlosfigueira/archive/2011/01/11/inferring-schemas-for-json.aspx
http://stackoverflow.com/questions/17956746/vb-net-deserialize-json-with-json-net
http://james.newtonking.com/json
http://jsontodatacontract.azurewebsites.net/

Regards,
AC

Posted in .Net Coding, Medium Technical | Tagged , , , , , , , | Comments Off on Deserializing JSON on .NET

Baseband Fucked: a “working” fix for greyed out WIFI and Bluetooth on the iPhone

Hello,

If you have this problem you can follow the “Apple official solution”; that is to reset your network settings, but…. To simple to work, don’t it?  Or try the next one that is to restore your iPhone and update/reload the iOS, that off curse that makes more sense, but there is slim chance that after several minutes downloading a new operating system and restore your phone you end with the same problem. Also without taking in mind that a update on those conditions if you don’t have the SHSH blows for going back in time and activation tickets saved, could make your phone unusable. 🙁
(Is Apple looking for getting your iPhone to them to get some cash? Nooo!)

So if you are still reading mean that you are on the 99.99% of us :)…

That might also do not apply on all cases but on my personal one did worked, so if you have the WIFI MAC address on 00:00:00:00:00:00, the Bluetooth MAC address on 00:00:00:00:00:00 and/or the phone status on “searching” mean that your baseband is fucked 🙂 Whattt?  (That usually happens if you were trying to unlock the phone with some untested or not supported by your phone tool!)

So as easy as this, just open terminal on the iPhone and type:
nvram wifiaddr=”40:A6:XX:XX:XX:XX”
nvram btaddr=”40:A6:XX:XX:XXXX”
Then reset it. (Obviously replace the XX’s with some random hexadecimal number, this was tested on iOS 7.0.4, on lower versions should work also)

That will permanently write out the new values on the NVRAM, and after a reset, your problems will be solved (just for Bluetooth and WIFI).
On my case the Bluetooth didn’t work right away, I had to do a reinstall of the iOS, and both were working.
Please note that changing the WIFI and/or BT MAC addresses will alter your UDID, so some things might not work as expected… (Activation?)

For telephone capability fix, I will write another post (whenever I finish figuring it out), but a baseband update might work (automatic, or manually with something like BBUpdaterExtreme)

Regards,
AC

Posted in iOS, Medium Technical | Tagged , , , , , , , , , , , , , , , , | Comments Off on Baseband Fucked: a “working” fix for greyed out WIFI and Bluetooth on the iPhone

How to run applications from console on the iPhone

Hello,

If the application is a terminal application just do this:
CD /Applications/Appname.app
./Appname

But if the application is GUI application; you will need a Cydia package named “open”, so search for it on Cydia, install it, and then on terminal just type:
open com.apple.calculator

Note: The command is case sensitive…

Regards,
AC.

Posted in iOS, Medium Technical | Tagged , , , , , , , , | Comments Off on How to run applications from console on the iPhone

How to install .deb on the iPhone on SSH

Hello,

Just send the file to your device and then run:
dpkg -i nameofpackage.deb
(Restart or re-spring maybe is needed…)

Source:
http://installpaidappsfree.blogspot.com.es/2013/02/how-to-install-deb-file-iphoneipodipad.html

Regards,
AC

Posted in iOS, Medium Technical | Tagged , , , , | Comments Off on How to install .deb on the iPhone on SSH

Change the default traffic route on Windows

Hello,

If you have multiple network cards, multiple connections to internet or you are using a VPN and you want that some of your traffic goes out by  using  a specific interface; then you will need the “route” command!

As easy as this:
route -p add [destiny.ip] [gateway] if [interface.number]

For example:
route -p add 209.68.27.16 192.168.1.1

If the name resolve using netbios you have to add the interface number, ex:
route -p add 209.68.27.16 192.168.1.1 if 32
[seems that windows networking takes a different route and wont work with the default route]

You can get the interface number with this command:
route PRINT -4
[its the fist output, labeled as “Interface List”]

And delete a created route with:
route -p delete 209.68.27.16

Originally from:
http://superuser.com/questions/457020/openvpn-only-route-a-specific-ip-addresses-through-vpn

Edited: 10-mar-2023 [added when interface number is needed]

AC.

Posted in Medium Technical | Tagged , , , , | Comments Off on Change the default traffic route on Windows