Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Programming


Programming A place for our community to discuss their own security related coding projects.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2007, 03:53 AM
Dr_GrEeN's Avatar
Senior Member
 
Join Date: Sep 2007
Location: dark side of the moon
Posts: 682
Send a message via MSN to Dr_GrEeN
Default Download Blue|Smash v1.0a BETA

Well here it is, Blue|track v1.0a BETA Please test and get back to me. I'm going to add a few more things but this is the basic layout.

Just run install-tools.sh and you are set to go.

http://www.mediafire.com/?9ywdiat5dz9

Enjoy
__________________
yada yada

Last edited by Dr_GrEeN; 12-27-2007 at 04:47 AM.
Reply With Quote
  #2 (permalink)  
Old 12-27-2007, 08:30 AM
s1lang's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 189
Default

Thank you

Will try this later when I dig out my bluetooth adapter

Edit:
Just installed:
During the running of install_tools.sh, the following errors occur on my BT
Code:
bt tools # install_tools.sh
echo -en "\n<<< Compiling atshell\n"

<<< Compiling atshell
gcc -lbluetooth -lreadline -lncurses atshell.c -o atshell
echo -en "\n<<< Compiling attest\n"

<<< Compiling attest
gcc -lbluetooth -lreadline -lncurses attest.c -o attest
echo -en "\n<<< Compiling bdaddr\n"

<<< Compiling bdaddr
gcc -lbluetooth -lreadline -lncurses bdaddr.c -o bdaddr
echo -en "\n<<< Compiling hcidump-crash\n"

<<< Compiling hcidump-crash
gcc -lbluetooth -lreadline -lncurses hcidump-crash.c -o hcidump-crash
echo -en "\n<<< Compiling hstest\n"

<<< Compiling hstest
gcc -lbluetooth -lreadline -lncurses hstest.c -o hstest
echo -en "\n<<< Compiling l2cap-packet\n"

<<< Compiling l2cap-packet
gcc -lbluetooth -lreadline -lncurses l2cap-packet.c -o l2cap-packet
echo -en "\n<<< Compiling l2cap_headersize_overflow\n"

<<< Compiling l2cap_headersize_overflow
gcc -lbluetooth -lreadline -lncurses l2cap_headersize_overflow.c -o l2cap_header
size_overflow
echo -en "\n<<< Compiling rfcomm_shell\n"

<<< Compiling rfcomm_shell
gcc -lbluetooth -lreadline -lncurses rfcomm_shell.c -o rfcomm_shell
rfcomm_shell.c: In function 'main':
rfcomm_shell.c:58: warning: incompatible implicit declaration of built-in functi
on 'exit'
rfcomm_shell.c:69: warning: incompatible implicit declaration of built-in functi
on 'exit'
rfcomm_shell.c:94: warning: incompatible implicit declaration of built-in functi
on 'exit'
rfcomm_shell.c:101: warning: incompatible implicit declaration of built-in funct
ion 'exit'
rfcomm_shell.c:108: warning: incompatible implicit declaration of built-in funct
ion 'exit'
rfcomm_shell.c:137: warning: incompatible implicit declaration of built-in funct
ion 'exit'
rfcomm_shell.c:152: warning: incompatible implicit declaration of built-in funct
ion 'exit'
rfcomm_shell.c: In function 'sig_alrm':
rfcomm_shell.c:195: warning: incompatible implicit declaration of built-in funct
ion 'exit'
cp atshell /usr/bin
cp attest /usr/bin
cp bdaddr /usr/bin
cp hcidump-crash /usr/bin
cp hstest l2cap-packet /usr/bin
cp l2cap_headersize_overflow /usr/bin
cp rfcomm_shell /usr/bin

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lncurses -lxml2 obex.c sdp.c folder.c mai
n.c -o btftp
folder.c:32:30: error: libxml/xmlmemory.h: No such file or directory
folder.c:33:27: error: libxml/parser.h: No such file or directory
folder.c: In function 'print_folder_listing':
folder.c:41: error: 'xmlDocPtr' undeclared (first use in this function)
folder.c:41: error: (Each undeclared identifier is reported only once
folder.c:41: error: for each function it appears in.)
folder.c:41: error: expected ';' before 'doc'
folder.c:42: error: 'xmlNodePtr' undeclared (first use in this function)
folder.c:42: error: expected ';' before 'cur'
folder.c:43: error: 'xmlChar' undeclared (first use in this function)
folder.c:43: error: 'prop' undeclared (first use in this function)
folder.c:50: error: 'doc' undeclared (first use in this function)
folder.c:56: error: 'cur' undeclared (first use in this function)
folder.c:62: error: expected ')' before 'xmlChar'
folder.c:75: error: expected ')' before 'xmlChar'
folder.c:81: error: expected ')' before 'xmlChar'
folder.c:83: error: expected ')' before 'xmlChar'
folder.c:87: error: expected ')' before 'xmlChar'
folder.c:100: error: expected ')' before 'xmlChar'
folder.c:102: error: expected ')' before 'xmlChar'
folder.c:106: error: expected ')' before 'xmlChar'
folder.c:110: error: expected ')' before 'xmlChar'
make: *** [all] Error 1
mv: cannot stat `btftp': No such file or directory

<<< Compiling btobex
gcc -lbluetooth -lopenobex obex.c sdp.c main.c -o btobex

<<< Compiling bss
gcc -c bss.c
bss.c: In function 'genreplay':
bss.c:100: warning: incompatible implicit declaration of built-in function 'strf                                                                                                                         time'
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function 'replace':
replace.c:22: warning: incompatible implicit declaration of built-in function 's                                                                                                                         trstr'
replace.c:26: warning: incompatible implicit declaration of built-in function 's                                                                                                                         trlen'
replace.c:39: warning: incompatible implicit declaration of built-in function 's                                                                                                                         trncpy'
replace.c:44: warning: incompatible implicit declaration of built-in function 's                                                                                                                         trcpy'
replace.c:54: warning: incompatible implicit declaration of built-in function 's                                                                                                                         trcpy'
gcc bss.o l2ping.o replace.o -o bss -Wall  -lbluetooth
strip bss
cp bss /usr/bin
It's a standard Real install of BT3 no extras apart from this.
edit:
fixed? the error caused in rfcomm_shell.c by including:
#include <stdlib.h>

It seems my install? is missing the libxml/ files. Looking into downloading them now which would be causing the second error: btftp
edit:
fixed? the btftp error.
Installed the xmllibrary from http://www.xmlsoft.org/downloads.html
Had to run the Blue|Track install numerous times, after each go a new error message would be displayed due to not being able to find linked files in the xml files. Therefore had to edit each one causing the error by simply adding xmllib2/ before each file listed in #include.
ie.
xmlmemory.h

#include <libxml/xmlversion.h>

changed to

#include <libxml2/libxml/xmlversion.h>


It still ran after the install so far with the above two compiling errors.


the only thing I had to do to get it to run was download and install PyBluez:
http://org.csail.mit.edu/pybluez/

bt pybluez-0.14 # python setup.py install
to get it installed

So far so good just running all your updates

update option 2 gives the following error
Code:
 Enter number: 2


              **** Updating BTscanner ****


sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
update option 6 gives the following error:
Code:
    Enter number: 6


              **** Installing T-Bear Suite ****


--12:58:20--  http://www.edgedata.net/~tbear/
           => `index.html'
Resolving www.edgedata.net... 208.78.97.129
Connecting to www.edgedata.net|208.78.97.129|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,131 (1.1K) [text/html]

100%[=============================================================================================================================================================>] 1,131         --.--K/s

12:58:21 (32.35 MB/s) - `index.html' saved [1131/1131]

tar: tbear.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
sh: line 0: cd: tbear-1.5: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
rm: cannot remove `tbear.tar.gz': No such file or directory
I apologise if any of this is unnessecary and there is an easier way to do it. But I'm still new to this and this is how I got round the errors presented to me during the install.

Last edited by s1lang; 12-27-2007 at 12:25 PM.
Reply With Quote
  #3 (permalink)  
Old 12-27-2007, 12:34 PM
Senior Member
 
Join Date: May 2007
Location: In The EX-"Human Rights Country", the land of cheese and wine.....
Posts: 2,981
Default

iv installed jbluez........

יי and really i think i should could a java port...the code may be more easy to integrate and update for a gui....

dl your version and will give you some update on codes
__________________

Reply With Quote
  #4 (permalink)  
Old 12-27-2007, 02:52 PM
Dr_GrEeN's Avatar
Senior Member
 
Join Date: Sep 2007
Location: dark side of the moon
Posts: 682
Send a message via MSN to Dr_GrEeN
Default

Cheers s1lang exactly what I needed I will sort all those errors tonight. Still got the HID attacks to go

Shamanvirtuel yea we will migrate the code to java if you like, just want to stabilize this script first .
__________________
yada yada
Reply With Quote
  #5 (permalink)  
Old 12-27-2007, 04:36 PM
Dr_GrEeN's Avatar
Senior Member
 
Join Date: Sep 2007
Location: dark side of the moon
Posts: 682
Send a message via MSN to Dr_GrEeN
Default

Here's the new version with the issues fixed highlighted by s1lang. Plus a few menu fixes etc. Also added an installer so just run install.sh and you are good to go

http://www.mediafire.com/?2nmugmbvmxe
__________________
yada yada
Reply With Quote
  #6 (permalink)  
Old 12-27-2007, 09:19 PM
s1lang's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 189
Default

BTW thank you Dr_Green for this program

Beta.b

Code:
bt tools # install_tools.sh
echo -en "\n<<< Compiling atshell\n"

<<< Compiling atshell
gcc -lbluetooth -lreadline -lncurses atshell.c -o atshell
echo -en "\n<<< Compiling attest\n"

<<< Compiling attest
gcc -lbluetooth -lreadline -lncurses attest.c -o attest
echo -en "\n<<< Compiling bdaddr\n"

<<< Compiling bdaddr
gcc -lbluetooth -lreadline -lncurses bdaddr.c -o bdaddr
echo -en "\n<<< Compiling hcidump-crash\n"

<<< Compiling hcidump-crash
gcc -lbluetooth -lreadline -lncurses hcidump-crash.c -o hcidump-crash
echo -en "\n<<< Compiling hstest\n"

<<< Compiling hstest
gcc -lbluetooth -lreadline -lncurses hstest.c -o hstest
cp atshell /usr/bin
cp attest /usr/bin
cp bdaddr /usr/bin
cp hcidump-crash /usr/bin
cp hstest l2cap-packet /usr/bin
cp l2cap_headersize_overflow /usr/bin
cp rfcomm_shell /usr/bin

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lncurses -lxml2 obex.c sdp.c folder.c main.c -o btftp
folder.c:32:30: error: libxml/xmlmemory.h: No such file or directory
folder.c:33:27: error: libxml/parser.h: No such file or directory
folder.c: In function 'print_folder_listing':
folder.c:41: error: 'xmlDocPtr' undeclared (first use in this function)
folder.c:41: error: (Each undeclared identifier is reported only once
folder.c:41: error: for each function it appears in.)
folder.c:41: error: expected ';' before 'doc'
folder.c:42: error: 'xmlNodePtr' undeclared (first use in this function)
folder.c:42: error: expected ';' before 'cur'
folder.c:43: error: 'xmlChar' undeclared (first use in this function)
folder.c:43: error: 'prop' undeclared (first use in this function)
folder.c:50: error: 'doc' undeclared (first use in this function)
folder.c:56: error: 'cur' undeclared (first use in this function)
folder.c:62: error: expected ')' before 'xmlChar'
folder.c:75: error: expected ')' before 'xmlChar'
folder.c:81: error: expected ')' before 'xmlChar'
folder.c:83: error: expected ')' before 'xmlChar'
folder.c:87: error: expected ')' before 'xmlChar'
folder.c:100: error: expected ')' before 'xmlChar'
folder.c:102: error: expected ')' before 'xmlChar'
folder.c:106: error: expected ')' before 'xmlChar'
folder.c:110: error: expected ')' before 'xmlChar'
make: *** [all] Error 1
mv: cannot stat `btftp': No such file or directory
make: *** No rule to make target `clean'.  Stop.

<<< Compiling btobex
gcc -lbluetooth -lopenobex obex.c sdp.c main.c -o btobex
make: *** No rule to make target `clean'.  Stop.

<<< Compiling bss
gcc -c bss.c
bss.c: In function 'genreplay':
bss.c:100: warning: incompatible implicit declaration of built-in function 'strftime'
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function 'replace':
replace.c:22: warning: incompatible implicit declaration of built-in function 'strstr'
replace.c:26: warning: incompatible implicit declaration of built-in function 'strlen'
replace.c:39: warning: incompatible implicit declaration of built-in function 'strncpy'
replace.c:44: warning: incompatible implicit declaration of built-in function 'strcpy'
replace.c:54: warning: incompatible implicit declaration of built-in function 'strcpy'
gcc bss.o l2ping.o replace.o -o bss -Wall  -lbluetooth
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
bt tools #
I presume it's my system that causes the errors with the libxml files.

I can fix the first error easily on my machine as stated in my previous post.
I'll look at the new second error too. BSS

Last edited by s1lang; 12-27-2007 at 09:22 PM.
Reply With Quote
  #7 (permalink)  
Old 12-27-2007, 09:30 PM
spankdidly's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 1,094
Default

No problems here Green, Except well, I can never get any bluetooth stuff to crack anyway. The script works though !
__________________
I felt like bending the bars back, and ripping out the window frames and eating them. yes, eating them! Leaping, leaping, leaping! Colonics for everyone! All right! You dumb*sses. I'm a mental patient. I'm *supposed* to act out!
Reply With Quote
  #8 (permalink)  
Old 12-27-2007, 09:44 PM
s1lang's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 189
Default

spankdidly does

<<< Compiling bss

Work correctly on yours?


If I run make in the BSS directory then follow the install I get this
Code:
<<< Compiling bss
make: Nothing to be done for `all'.
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
then I run install again or without running make I get this
Code:
bt tools # ./install_tools.sh
make: Nothing to be done for `all'.
cp atshell /usr/bin
cp attest /usr/bin
cp bdaddr /usr/bin
cp hcidump-crash /usr/bin
cp hstest l2cap-packet /usr/bin
cp l2cap_headersize_overflow /usr/bin
cp rfcomm_shell /usr/bin

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lncurses -lxml2 obex.c sdp.c folder.c main.c -o btftp
make: *** No rule to make target `clean'.  Stop.

<<< Compiling btobex
gcc -lbluetooth -lopenobex obex.c sdp.c main.c -o btobex
make: *** No rule to make target `clean'.  Stop.

<<< Compiling bss
gcc -c bss.c
bss.c: In function 'genreplay':
bss.c:100: warning: incompatible implicit declaration of built-in function 'strftime'
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function 'replace':
replace.c:23: warning: incompatible implicit declaration of built-in function 'strstr'
replace.c:27: warning: incompatible implicit declaration of built-in function 'strlen'
replace.c:40: warning: incompatible implicit declaration of built-in function 'strncpy'
replace.c:45: warning: incompatible implicit declaration of built-in function 'strcpy'
replace.c:55: warning: incompatible implicit declaration of built-in function 'strcpy'
gcc bss.o l2ping.o replace.o -o bss -Wall  -lbluetooth
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
I presume it's due to my install not knowing what/where strstr, strlen etc are or do??

Last edited by s1lang; 12-27-2007 at 09:49 PM.
Reply With Quote
  #9 (permalink)  
Old 12-27-2007, 09:56 PM
s1lang's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 189
Default

When realising I'm a complete tart and still running install_tools.sh rather than install.sh DOH!!

So I've run install.sh
however still with the compiling of bss I get:
Code:
<<< Compiling bss
gcc -c bss.c
bss.c: In function 'genreplay':
bss.c:100: warning: incompatible implicit declaration of built-in function 'strftime'
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function 'replace':
replace.c:23: warning: incompatible implicit declaration of built-in function 'strstr'
replace.c:27: warning: incompatible implicit declaration of built-in function 'strlen'
replace.c:40: warning: incompatible implicit declaration of built-in function 'strncpy'
replace.c:45: warning: incompatible implicit declaration of built-in function 'strcpy'
replace.c:55: warning: incompatible implicit declaration of built-in function 'strcpy'
gcc bss.o l2ping.o replace.o -o bss -Wall  -lbluetooth
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
Installation Complete. You may now run Blue|Track... Enjoy
bt bluetrack-1.0b-BETA #
The program runs though after this errored install

option 6 in the update now works correctly
Reply With Quote
  #10 (permalink)  
Old 12-27-2007, 09:57 PM
spankdidly's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 1,094
Default

No idea man. Mine doesn't have ./install_tools.sh

Mine just has
./install.sh

Did you download the latest versions? I get no errors installing or even running the script. The only error I got was "Cannot connect to Blah Blah". But that's because the phone isn't vulnerable (I believe).


Quote:
Originally Posted by s1lang View Post
spankdidly does

<<< Compiling bss

Work correctly on yours?


If I run make in the BSS directory then follow the install I get this
Code:
<<< Compiling bss
make: Nothing to be done for `all'.
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
then I run install again or without running make I get this
Code:
bt tools # ./install_tools.sh
make: Nothing to be done for `all'.
cp atshell /usr/bin
cp attest /usr/bin
cp bdaddr /usr/bin
cp hcidump-crash /usr/bin
cp hstest l2cap-packet /usr/bin
cp l2cap_headersize_overflow /usr/bin
cp rfcomm_shell /usr/bin

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lncurses -lxml2 obex.c sdp.c folder.c main.c -o btftp
make: *** No rule to make target `clean'.  Stop.

<<< Compiling btobex
gcc -lbluetooth -lopenobex obex.c sdp.c main.c -o btobex
make: *** No rule to make target `clean'.  Stop.

<<< Compiling bss
gcc -c bss.c
bss.c: In function 'genreplay':
bss.c:100: warning: incompatible implicit declaration of built-in function 'strftime'
gcc -c l2ping.c
gcc -c replace.c
replace.c: In function 'replace':
replace.c:23: warning: incompatible implicit declaration of built-in function 'strstr'
replace.c:27: warning: incompatible implicit declaration of built-in function 'strlen'
replace.c:40: warning: incompatible implicit declaration of built-in function 'strncpy'
replace.c:45: warning: incompatible implicit declaration of built-in function 'strcpy'
replace.c:55: warning: incompatible implicit declaration of built-in function 'strcpy'
gcc bss.o l2ping.o replace.o -o bss -Wall  -lbluetooth
strip bss
cp bss /usr/bin
rm -f bss bss.o l2ping.o replace.o
replay_packet/clean.sh
I presume it's due to my install not knowing what/where strstr, strlen etc are or do??
__________________
I felt like bending the bars back, and ripping out the window frames and eating them. yes, eating them! Leaping, leaping, leaping! Colonics for everyone! All right! You dumb*sses. I'm a mental patient. I'm *supposed* to act out!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2