Members Login
Username 
 
Password 
    Remember Me  
 

Topic: [U of NE] Network Hacking Basics 101

Post Info
Ben
Administrator
Status: Offline
Posts: 232
Date:
[U of NE] Network Hacking Basics 101
Permalink   
 

So, you want to be a hacker, eh? I suppose I could teach you a thing or two. I'm not bad at it myself, as a matter of fact. Just stick with me, kid, and you'll be up to your elbows in stuff you shouldn't be in no time.

First things first, there are two major types of hacking. There is direct hacking, in which you actually modify a piece of software, and network hacking, which is the more well-known form, and lets you get into things you shouldn't.

Direct software hacking has a bit of a steep learning curve. The most important thing is to be able to read assembly code for the device you're trying to hack. For example, in an MSP430 (a fairly common RISC-architecture microprocessor,) assembly code looks like this (I've commented the code so you'll be able to understand what it's doing:)

;*******************************************************************************
;   MSP430F22x4 Demo - USCI_A0, UART 9600 Full-Duplex Transceiver, 32kHz ACLK
;
;   Description: USCI_A0 communicates continously as fast as possible full-
;   duplex with another device. Normal mode is LPM3, with activity only during
;   RX and TX ISR's. The TX ISR indicates the USCI_A0 is ready to send another
;   character. The RX ISR indicates the USCI_A0 has received a character. At
;   9600 baud, a full character is tranceived ~1ms.
;   The levels on P1.4/5 are TX'ed. RX'ed value is displayed on P1.0/1.
;   ACLK = BRCLK = LFXT1 = 32768, MCLK = SMCLK = DCO ~1.2MHz
;   Baud rate divider with 32768Hz XTAL @9600 = 32768Hz/9600 = 3.41
;   //* An external watch crystal is required on XIN XOUT for ACLK *//
;
;                 MSP430F22x4                  MSP430F22x4
;              -----------------            -----------------
;             |              XIN|-      /|\|              XIN|-
;             |                 | 32kHz  | |                 | 32kHz
;             |             XOUT|-       --|RST          XOUT|-
;             |                 | /|\      |                 |
;             |              RST|---       |                 |
;             |                 |          |                 |
;           ->|P1.4             |          |             P1.0|-> LED
;           ->|P1.5             |          |             P1.1|-> LED
;       LED <-|P1.0             |          |             P1.4|<-
;       LED <-|P1.1             |          |             P1.5|<-
;             |     UCA0TXD/P3.4|--------->|P3.5             |
;             |                 |   9600   |                 |
;             |     UCA0RXD/P3.5|<---------|P3.4             |
;
;*******************************************************************************
.cdecls C,LIST,  "msp430x22x4.h"
;------------------------------------------------------------------------------
.text                  ; Program reset
;------------------------------------------------------------------------------
RESET       mov.w   #300h,SP                ; Initialize stack pointer
StopWDT     mov.w   #WDTPW+WDTHOLD,&WDTCTL  ; Stop watchdog timer
SetupP1     mov.b   #000h,&P1OUT            ; P1.0/1 setup for LED output
bis.b   #003h,&P1DIR            ;
SetupP3     bis.b   #030h,&P3SEL            ; Use P3.4/P3.5 for USCI_A0
SetupUSCI0  bis.b   #UCSSEL_1,&UCA0CTL1     ; CLK = ACLK
mov.b   #03h,&UCA0BR0           ; 32kHz/9600 = 3.41
mov.b   #00h,&UCA0BR1           ;
mov.b   #UCBRS1+UCBRS0,&UCA0MCTL; Modulation UCBRSx = 3
bic.b   #UCSWRST,&UCA0CTL1      ; **Initialize USCI state machine**
bis.b   #UCA0RXIE+UCA0TXIE,&IE2 ; Enable USCI_A0 TX/RX interrupt
;
Mainloop    bis.b   #LPM3+GIE,SR            ; Enter LPM3 w/ interrupts enabled
nop                             ; Required for debugger only
;
;-------------------------------------------------------------------------------
USCI0TX_ISR;
;-------------------------------------------------------------------------------
mov.b   &P1IN,R4                ;
rrc.b   R4                      ; Justify 4x right
rrc.b   R4                      ;
rrc.b   R4                      ;
rrc.b   R4                      ;
and.b   #03h,R4                 ;
mov.b   R4,&UCA0TXBUF           ; Transmit character
reti                            ; Exit ISR
;-------------------------------------------------------------------------------
USCI0RX_ISR;
;-------------------------------------------------------------------------------
mov.b   &UCA0RXBUF,&P1OUT       ; Display RX'ed charater
reti                            ; Exit ISR
;
;------------------------------------------------------------------------------
;           Interrupt Vectors
;------------------------------------------------------------------------------
.sect   ".reset"                ; MSP430 RESET Vector
.short  RESET                   ;
.sect   ".int06"                ; USCI Vector
.short  USCI0TX_ISR             ;
.sect   ".int07"                ; USCI Vector
.short  USCI0RX_ISR             ;
.end

If you're interested in learning assembly to be able to read all of that, let me know and I'll post a few lessons on it. However, the specific request for this lesson was network hacking.

Mainly, network hacking involves intercepting network packets and decoding them to get access to the internal data. Once you know everything about a certain number of packets, you can gain access to the network in question. However, I can tell that most of my readers are probably going to be feeling a little lost at this point, so I'm going to give you some quick and easy tricks on one of the simplest forms of hacking: Google Hacking.

That's right; I bet you didn't know that you could use Google to hack things, did you? In this first example, I'll show you how to hack a security camera. Don't worry; it's easier than it sounds.

Visit Google and past exactly this into the search box:

inurl:”viewerframe?mode=motion”

Now, look underneath each result at the web address. If it looks like an actual website, you probably shouldn't click on it, as it's someone else who knows this trick and probably is full of viruses. However, if you see a result that begins with an IP address, such as http://207.28.13.71/ViewerFrame?Mode=Motion, go ahead and click on it. Voila! You are now viewing a security camera. The controls to move the camera are on the right side of the screen, though they are usually locked unless you input a password.

Hopefully you've enjoyed your first taste of hacking. Let me know if you found this lesson useful and informative, and I'll post more like it.


__________________
"It needs to be about 20% cooler." --Rainbow Dash

Of course you should listen to me. Have I ever lied to you before?
I mean, in this topic.

Administrator
Status: Offline
Posts: 993
Date:
Permalink   
 
http://60.45.63.26/ViewerFrame?Mode=Motion

Found a Japenese zoo!

__________________
I don't suffer from insanity. I enjoy every minute of it.

"Life is a game, Order. And I'm winning." --Discord, "Order and Chaos".

Forum Guru
Status: Offline
Posts: 424
Date:
Permalink   
 
THIS ISH TO COMPLICATED FOR ME ITS MAKING MY HEAD BURN (explodes)

__________________

i am a greatful grapefruit!

                                       -bjork

Full of Win
Status: Offline
Posts: 397
Date:
Permalink   
 
that sounds cool but i might get into trouble

__________________

The Fun Has Been Doubled!

Full of Win
Status: Offline
Posts: 397
Date:
Permalink   
 
will anyone know i did it like the police or somthing

__________________

The Fun Has Been Doubled!

Ben
Administrator
Status: Offline
Posts: 232
Date:
Permalink   
 
Double D wrote:

will anyone know i did it like the police or somthing


 Nope. This can't get you into any trouble; you're not doing anything illegal. All you're doing is accessing unsecured webcams - it's their own fault for leaving them unsecure.



__________________
"It needs to be about 20% cooler." --Rainbow Dash

Of course you should listen to me. Have I ever lied to you before?
I mean, in this topic.

Full of Win
Status: Offline
Posts: 397
Date:
Permalink   
 

ok well your the smart one so i guess i should trust you smile.gif



__________________

The Fun Has Been Doubled!

Full of Win
Status: Offline
Posts: 397
Date:
Permalink   
 

is there anything else you can hack off of google?



__________________

The Fun Has Been Doubled!

 
Page 1 of 1  sorted by
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard