How to access your office PC if you forgot to set port forwarding

It is not very common that you would have a DNZ at the office pointing to a Linux server with openssh-server installed, but if you do, this will allow you to use that PC as a proxy to access your internal network.

Yesterday, While changing the router (A small office Linksys router) for some reason that i can not remember, or simply because i like to switch stuff for no known reason, i forgot to redirect port 3389 which is the default for RDP to my computer ! damn it, now i can not access my PC tonight, and with this insomnia, life is not much fun without my PC !

So, the DMZ or demilitarized zone on the router points to a linux machine inside my network, so the plan now is to access the network through that machine, open the router settings page that is only accessible from within the network, Point the RDP port to my PC, and get on with my life.

How i plan to do that is simple, openssh-server is already installed on the linux machine that the DMZ points to !

Putty is an application that allows me to connect, and then use it as a socks proxy !

Here is a screenshot of the steps i need to do with putty

The steps are as follows

Open Putty…

In Hostname or IP address, put my office IP address, in Saved sessions i enter MyOffic
On the left go to Connection > ssh > tunnels and enter the info as follows

Source port 9999
Change local to dynamic
Click Add
you should now see D9999 in the list
Go back to Session at the top of the list on the left, Click save again, we are done with putty, connect and login to the remote PC…

Now open firefox then tools > options > Advanced tab > Network subtab > Settings button under Connection > manual proxy configuration, then fill in 127.0.0.1 into socks host, chose socks V5 radio button, and port 9999 (because we chose it with putty)

Ok yourself out of the menus and point your browser to the router on the office network, there we are, my office router accessed from home !

Added RDP port 3389 to the forwarding list so that it forwards Remote Desktop Connections to my own PC at the office, And it works, Now i can get the password to my wordpress blog :)

Posted in Networking, Routers | 1 Comment

Stats infinity progress

I have been doing some work on Stats Infinity, and now i myself  can feel the benefits of using the website to find good domain names

In a few hours, the search script and search box will be ready so that you will be able to search for expired domain names by keyword, Something that sounds trivial but in reality it is not.

The problem is the search algorithm when you do not know the position of the keyword (s)  in the word.

For example, you can see Domains containing the word SMART (You can restrict this to expired domains if you like ), but you can not see those that have the word SMRT (With the A omitted) simply because the matching on this system works  for words in a list of 1 million words from English, Italian, Spanish and German. Words not on the word list will not work.

I am now looking for missing words and adding them to the list of words, but more of this activity is expected to come later, once i get more of the website done

Mixing keywords while searching for expired domains works as well, In the search box you should be able to enter any combination of words and our system will try to show you expiring domains by relevance.

Some of the good features of the website such as finding out what domain names are re-branded nameservers  and which ones are actual unique nameservers are not very obvious, I intend to write human edited clarifications such as the one about GoDaddy’s Domain Control and for example.

Other features such as (Real Nameservers) are very simple to use but the designer needs to get creative in making things clearer on the website, when you check for a nameserver, a list of alternative hostnames (rebranded nameservers) appears on the left, You can also reach such a list by entering the nameserver’s hostname or IP address in the box provided (Same box you would enter keywords into).

In any case, i will be keeping everyone posted on the progress of the project, and wishing everyone the best of luck in finding there new domains :)

Posted in Database, Domain Names | Leave a comment

Intel Processors and Memory

Note: Please disregard the results below, it seems variables affecting results were present and therefore rendered the results in this post incorrect.

Maybe the following is not the best way to look at Computer processors, but it is a valid way for some scenarios, here are my results for comparing Dual Core Pentiums, Core2 Duo, and Core2 Quad, in addition to the Celeron E3300.

Most CPUs are on a Foxconn G33M motherboard with Dual Channel memory, the exception to this are the 2 pentium 4 CPUs and the 2 laptops.

I wanted to share the results with you because i think they are not what most people expect, on a core by core basis, Dual Core beats Quad Core for this test, but the Quad core wins on a processor to processor comparison surely

The test is as follows.

Every core loads 1 million words (English, Spanish, Italian) into RAM (So a dual core would have the 1 million words loaded twice into ram, and a quad core 4 times), then starts comparing the words to documents and texts, the text is retrieved from the network.

With 10 Processor cores running the results are as follows.

Core2 Duo E4400 (2Ghz) – 2 cores running – 33/34 (avg. 33.5)
Celeron Duo E3300 (2.5Ghz) – 2 Cores running – 32/33 (avg. 32.5)
Core2 Duo T7100 (1.8Ghz)- 2 Cores running – 28/29 (avg. 28.5)
Core2 Quad Q8300 (2.5Ghz) – 3 cores running – 26/26/26 (avg. 26)
Core2 Quad Q6600 (2.4Ghz) – 4 cores running – 23/25/23/29 (avg. 25)
Core2 Quad Q6600 (2.4Ghz) – 3 cores running – 24/25/25 (avg 24.6)
Pentium Dual Core T2080 (1.73Ghz) – 2 Cores running – 24/24 (Avg 24)
Pentium 4 HT Prescott (3.4Ghz) – 2 threads running – 16/16 (avg 16)
Pentium 4 HT Northwood (2.4Ghz) – 2 threads running – 11/13 (Avg 12)

In this experiment, the cache seems irrelevant.
Probably due to memory bottlenecks, the Dual cores at lower clock speeds outperform the higher clock speed quad cores.

Posted in Uncategorized | 1 Comment

Stats Infinity – Phase 2

So the system that classifies Domain names by  Nameserver, and nameservers by either IP address (Real Nameservers) or Parent Nameserver is done

Although this will remain important Data, it will probably not be the website’s main navigation, the data will always be available, but since nameservers change, and spanned pages change along with them, you can not keep a bookmark for this kind of data.

The new data will be by word, For example, StatsInfinity.COM will probably be listed under both Stats and Infinity , And very soon, there will be an option to display all existing domains containing both words (Anding).

The new classification by contained words guarentees a constant – Consistant page location for every domain name, so a domain that is on the fifth page of a certain word should stay there forever, even after it expieres (Will clearly mark it as expiered for visitors)

The data analysis of domain names compared to dictionary words has not been completed yet, But the only thing we know for sure is that 100,000,000 Domain names compared to 1,000,000 words is a 100,000,000,000,000 (14 Zeros or a one hundred trillion word-domain comparisons), and even with the smartest of algorithims, it is not as easy as one may wish, and it will probably take many days to complete.

In any case, Once Dictionary processing is done, the front page should display the 20 words used most in domain names, i will keep you informed here as soon as we get to the next level.

Posted in Domain Names, Uncategorized | Leave a comment

Superfetch has stopped working

This is a Windows Vista SP1 (Upgrading now to SP2) that displayed a crash screen that reads “Superfetch has stopped working”.

Superfetch crash screen

The computer keeps going, but surely without superfetch.

NOTE: Here is the bottom line, error event log says problem is with C:\Windows\Prefetch\AgAppLaunch.db so i replaced it with the one from the Windows.old directory, the file itself was unreadable even with notepad probably due to filesystem corruption.

Going online for a solution does not seem to come back with anything, so i went to the windows Event Viewer

In the event viewer, i found an error message such as

—————————————————————

Windows cannot access the file C:\Windows\Prefetch\AgAppLaunch.db for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program Host Process for Windows Services because of this error.

Program: Host Process for Windows Services
File: C:\Windows\Prefetch\AgAppLaunch.db

The error value is listed in the Additional Data section.
User Action
1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
2. If the file still cannot be accessed and
- It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
4. If the problem persists, restore the file from a backup copy.
5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.

Additional Data
Error value: C000009C
Disk type: 3

—————————————————————

Right after every one of those above, i will get an error that reads

—————————————————————

Faulting application svchost.exe_SysMain, version 6.0.6001.18000, time stamp 0x47918b89, faulting module sysmain.dll, version 6.0.6001.18000, time stamp

0x4791a770, exception code 0xc0000006, fault offset 0x000190cf, process id 0x104c, application start time 0x01cad870934b6597.
this is for
superfetch has stopped working
surely, after
SVCHost.exe has
crashed.

—————————————————————

Now that i can see the error is about reading C:\Windows\Prefetch\AgAppLaunch.db, i try to open it with notepad, but strange noises come from the hard disk when i do, S.M.A.R.T. Data does not say anything about a faulty hard drive so i am assuming the hard drive is fine and that the problem is with the FileSystem

I opened the windows.old folder that a previous installation of windows left me with, and replaced the file with the file from that directory, and up to now, it looks like it is working

To be on the safe side, i am installing SP2 at the very minute, but i have no idea if SP2 resolves this issue anyway.

Stay tuned, and take care

Other things to note (For my own reference)

The crash screen displayed the following information

Problem signature:
Problem Event Name: InPageError
Error Status Code: c000009c
Faulting Media Type: 00000003
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160

—————————————

And searching Microsoft’s KB results in No results were found for your query. Please see Search Help for suggestions.

Posted in Windows | Leave a comment

Mobilecom 3G drops phone connectivity

So i visited one if the Orange shops to exchange my SIM card with a 3G sim card, and ever since, i have not used my phone much, not because i was busy with 3G, on the contrary, that didn’t work, but because the GSM phone network stopped working at my office, and many times outside my office.

This is indeed funny, my theory is, Orange, in an effort to win customers over by being the first to offer 3G in Jordan (3G 3.5 or as they call it 3G+) annoyed it’s current subscribers by the unreliable phone (audio) connectivity, not only are all incoming calls dropped as (Can not be reached) when i am at the office, i can not make outgoing calls either.

It is worth mentioning that i am not alone, someone else at the office with a NOKIA E52 has the same problem (A welcome increase in productivity ;) ), and i have tried a Sony Ericsson P990i and a nokia N95, all 3 phones have the same problem, all 3 phones 3G capable.

So orange, when are you going to fix things, this is plain ridiculous, as if you forgot to test the service, what happened to your “Jupiter” mini network that you use for testing, or is that propaganda to convince us that you do your homework ?

The problem is, No signal most of the time, sometimes there is a signal but i can not make calls and i appear as can not be reached to callers, sometimes there is the 3G symbol, sometimes there is a 3G symbol with a crossed phone beside it, Other times it reads no available networks…

UPDATE: For now, i have got my phone to work by switching the SIM card to any NON-3G phone, at the minute a sub $30 Mototrola WX160

Posted in Uncategorized | Leave a comment

I like my rebranded tp-link router – XTECH Router

Today, i got a new Wireless Lite N router for JD20 (Around $28), and it works like a dream, in reality, the following is a sampleof the routers web GUI responce headers

Server: TP-LINK Router
Connection: Keep-Alive
WWW-Authenticate: Basic realm="XTECH 150Mbps Wireless Lite-N Router WR771LN"
Content-Length: 26344
Content-Type: image/jpeg

200 OK

Some Hanania Investment Group seems to be responcible for this new XTECH Brand, and for this router, it is well worth the money.

The RJ45 eithernet cable mentioned on the outside as included is not included, but then again, why would i need 1 more eithernet cable.

This model seems to be the same as TP-WR741ND , and if you know what little endian, big endian, and a hex editor are, you may be able to put the “Open Sourced” TP-LINK software back on this hardware.

Anyway, i hope all other XTECH stuff are as good as this one

NOTE: The only reason you may want to have the TP-LINK firmware back on this router is that there is no mentioning of this router on xtechinternational.com and therefore i can not find a firmware upgrade, TP link will surely have the upgrades as soon as they are out though.

The router is probably an atheros chip router with a

HYNIX 933S C
HY5DU561622FTP-D43 RAM

If anyone wants some photos, i can post them here for you no problem

you can find this router almost everywhere, SmartBuy Carefour, and others are stacking piles of it.

Good Luck

Posted in Uncategorized | Leave a comment

Internet Hosting Statistics

It seems we are off to a good start with the data being processed continously, and the most important functions implemented on the website, We should be displaying very valuable data very soon.

Now, the name will probably be Stats Infinity, Stats short for Statistics, and Infinity to tell the world we intend to save historical data forever, and we intend to make history of a server, a domain, or an IP address available at all times.

We have just started today, so not much is displayed yet, we will be starting by displaying nameserver data, then mail server data, Web, then any other relations.

We will also have aggrigate statistics of almost everything we can think of.

For example, you can already find out how many domain names actually use godaddy’s nameservers by simple checking statistics about domains that point to the nameservers under DOMAINCONTROL.COM

Please let us know of your comments and suggestions, we would be very grateful

Posted in Uncategorized | 1 Comment

32bit gone forever

i remember when Windows 95 came out, the miracle of 32bit computing, the number 4GBs of RAM was so huge that i never thought we would get there, why in the world would anyone want to have 4GBs of ram on a computer, seemed like infinity at the time. (Yes i know MS released 32 bit before 95 with Win32s and NT but i am talking about ordinary desktops)

Anyway, these days, when an application works 32bit only, i know in advance the application is no longer maintained, With Virtualization, Database, RamDisks and other things, 32bit is long gone (At least to me), the 2 to the power 32 = 4GB are hardly good for a modern computer with a computer geek behind it, 2 to the power 64 = , (In reality, the 52/48 bit physical address is more than enough so it is not realy 64bit). seems more like it, and seems like something that will not be obsolete in the comming 20 years (Unless new technology introduces new kinds of ram where we get ram in Terrabytes)

Anyway, Microsoft’s 32 bit emulator seems to be working fine, but not for device drivers, the reason for that is that the driver is lower than the emulator (Closer to the hardware and does not pass by the emulator), This is not a problem as far as i can see as any modern hardware supporting 64bit computing should have 64bit drivers, PCI cards that do not support 64bit are common, but then again, the 32bit drivers should work for those.

Anyway, thanks to AMD i now have a 28GB Ram Hard Disk (Virtual), and when i want to analyze Database data, disk seek time is not longer an issue to me, seek time simply does not exist in RAM.

Posted in Uncategorized | Leave a comment

how to mount a ram hard disk in Linux

In this post, i will show you how to create a very fast, 0 latency hard drive from the extra gigabyte or 2 on your system

1- You need to change the boot options to allow this…

Since i use debian lenny, my boot options look like this in /boot/grub/menu.lst

title        Debian GNU/Linux, kernel 2.6.26-2-686
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet
initrd        /boot/initrd.img-2.6.26-2-686

We need to append ramdisk_size=1572864 if we wanted a 1.5GB RAM drive, make sure you have 1.5GB EXTRA on your system, let’s say you must have a minimum of 2GB for the system to run using the 512MB you are leaving the system with

title        Debian 1.5GB Ramdisk, kernel 2.6.26-2-686
root        (hd0,1)
kernel        /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet ramdisk_size=1572864
initrd        /boot/initrd.img-2.6.26-2-686

You are done for now, if you want to format and use it do this

/sbin/mkfs.ext2 /dev/ram0

Remember that you need to format as ext2 and not ext3, i have seen people format the hard drive as EXT3, why would you ever need Journaling on a RAM disk that is already volatile (Deleted when you reboot)

mkdir /ramdisk
mount /dev/ram0 /ramdisk

You can now get creative and format or load a disk image at boot time, in any case, the RAM is only allocated to the disk when you use it, but you really don’t need to know that to use your new RAM hard disk

NOTE: I chose to explain RAM disk because later on i will show you what advantages we can get from having a block level device, you can surely do this without modifying boot options by simply using tempfs or RAMFS that give you an instant ram disk, but it is not a block level device in that case

Testing Speed

So, you want to see how fast it is, but for that we need a data source that can push this thing to the maximum, the answer is /dev/zero that responds with a stream of zeros, so let us write a 1.3GB file to our new volatile hard disk

dd if=/dev/zero of=/ramdisk/pathtoimage.img bs=1M count=1300

On my computer, this took about 4.54006 seconds.

Posted in Debian, Lenny, Linux, Uncategorized, hard disks, storage | Tagged | Leave a comment