Using CPanel/WHM API to get detail list of all accounts on server

No Comments »

 

Today I had this need to get a list of WHM Accounts using one of its APIs. I have never used it before but it was really simple to use. It returns an xml file that you can manipulate using your prefered language and store it in database for reporting etc.

Here is what you need to do, connect to your server using SSH and run the following command

wget http://your-server-ip:2086/xml-api/listaccts --http-user=myuser --http-password=mypass --output-document=listaccts.xml

Replace your-server-ip with your WHM’s ip and myuser/mypass with the actual WHM/CPanel password. The resultant xml file will be saved as “listaccts.xml” in the same directory as you ran the command in.

If you feel a bit insecure running these command over SSH or don’t have shell access to the server then visit this page on your browser and save it as an xml file.

http://your-server-ip:2086/xml-api/listaccts

(again, substitute your-server-ip with the actual WHM ip address, substitute HTTP with HTTPS and port to 2087 for HTTPS if enabled on your server / FQDN)

Enjoy!


History of Domain Names

No Comments »

 

Yet another infographic. Well, Infographics are much better way to grasp the information, especially if they’re well made. This cool infographic from Tech King lists out some of the most important events in the history of Domain Names.

Pakistan ranks 55th with only 46 thousand domain names in Top countries for domain registration.

Read the rest of this entry


History of Online Gaming

No Comments »

Yet another infographic. Well, Infographics are much better way to grasp the information, especially if they’re well made. This cool infographic from Silver Oak lists out some of the most important events in the history of the internet gaming.

Read the rest of this entry


Microsoft & Google Pakistan Defaced by Turkish hackers

No Comments »

 

MarkMonitor Inc, USA based company who is responsible for over 110 domains including google.com.pk, microsoft.com.pk, paypal.pk, domain control panel hacked, last night and some sites are still down as of (24th November, 2012)

Google Pakistan’s home page (google.com.pk) is “hacked” by Turkish hackers putting a message which says “Pakistan Downed”. Paypal site is still down and showing this:-

turkeyhack

WHOIS record of those hostings point to some free hosting service as DNS providers:-

dns1.freehostia.com
dns2.freehostia.com

List of sites affected:-

  1. biofreeze.com.pk
  2. blackstone.pk
  3. blogspot.pk
  4. itunes.pk
  5. gmails.pk
  6. zynga.com.pk
  7. chrome.com.pk
  8. chrome.pk
  9. visa.com.pk
  10. bx.com.pk
  11. abbvie.com.pk
  12. abbvie.pk
  13. cgma.pk
  14. chacos.com.pk
  15. cimacpa.pk
  16. cisco.pk
  17. ciscosystems.pk
  18. blogspot.com.pk
  19. cpacima.pk
  20. cpaintl.pk
  21. cpaldglobal.pk
  22. cpalwglobal.pk
  23. drivealliance.pk
  24. eastman.biz.pk
  25. eastman.net.pk
  26. eastman.org.pk
  27. ebay.pk
  28. monatin.pk
  29. everyblock.pk
  30. youtube.pk
  31. 3com.web.pk
  32. hp.web.pk
  33. revlon.pk
  34. streetwear.pk
  35. windows7.pk
  36. windows8.pk
  37. windowsrt.pk
  38. yahoo.pk
  39. yahoomaktoob.pk
  40. zynga.pk
  41. firstdirect.com.pk
  42. flickr.pk
  43. fordgofurther.pk
  44. gbuzz.pk
  45. gmailbuzz.pk
  46. gmail.pk
  47. googlebrowser.com.pk
  48. google.pk
  49. googlebuzz.pk
  50. googlechrome.com.pk
  51. abbviepharmaceuticals.pk
  52. abbviepharmaceuticals.com.pk
  53. hewlettpackard.pk
  54. hexagon.com.pk
  55. hsbcamanah.biz.pk
  56. hotmail.com.pk
  57. hpcloud.com.pk
  58. hp.com.pk
  59. hpscalene.com.pk
  60. hsbc.biz.pk
  61. hsbcadvance.com.pk
  62. hsbc.pk
  63. hsbcpremier.com.pk
  64. hsbcprivatebank.biz.pk
  65. hsbcamanah.com.pk
  66. hsbcdirect.com.pk
  67. hsbcnet.com.pk
  68. hsbcpremier.biz.pk
  69. hsbcpremier.pk
  70. hsbcprivatebank.com.pk
  71. investdirect.biz.pk
  72. investdirect.com.pk
  73. ipod.pk
  74. jaiku.pk
  75. kellyservices.com.pk
  76. maktoob.pk
  77. markmonitor.pk
  78. microsoftsmartglass.com.pk
  79. microsoftsmartglass.pk
  80. xboxsmartglass.com.pk
  81. xboxsmartglass.pk
  82. msn.org.pk
  83. windowsstore.pk
  84. windowsstore.com.pk
  85. opteron.com.pk
  86. parkplaza.pk
  87. paypal.pk
  88. postini.pk
  89. scalene.com.pk
  90. schwab.biz.pk
  91. schwab.com.pk
  92. sonystyle.com.pk
  93. streetwear.com.pk
  94. theworldslocalbank.com.pk
  95. genapp.pk
  96. genapp.com.pk
  97. generationapp.pk
  98. generationapp.com.pk
  99. windows.com.pk
  100. windows7.com.pk
  101. windows8.com.pk
  102. 3com.biz.pk
  103. 3com.fam.pk
  104. 3com.net.pk
  105. 3com.org.pk
  106. gchrome.com.pk
  107. aicpacima.pk
  108. apple.pk
  109. google.com.pk
  110. microsoft.pk

FTP automation on Linux

No Comments »

 

Ever wanted FTP backups and automation for keeping backups of important file on off-peak time. I always love automation, so machines can do things automatically and help humans 🙂 Read the rest of this entry


Securing Linux for Physical Access

No Comments »

 

Physical access is everything, it is almost impossible to prevent machine access/password break if somebody else got physical access to some Linux machine.

But there are some steps you can make somebody work hard to access the machine physically (provided they have good knowledge of Linux). Read the rest of this entry