• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Problem mit bluediving

Conax

Hacker
Ich hab mich nach der readme gehalten:

[Requirements]

Linux 2.4 / 2.6
BlueZ
sox
obexftp
libreadline
expat / XML::Simple


[Installation]

Ok. Here we go...

[1] Install bluez libs and utils, libreadline, sox, obexftp.
[2] Compile the shipped tools (cd tools; ./make-tools.sh)

Doch diese zahlreichen error Meldung machen mich stutzig.

linux-zsoe:/home/stefan/src/bluediving-0.9/tools # ./make_tools.sh
rm -f atshell attest bdaddr hcidump-crash hstest l2cap-packet l2cap_headersize_overflow rfcomm_shell
echo -en "\n<<< Compiling atshell\n"

<<< Compiling atshell
gcc -lbluetooth -lreadline -lncurses atshell.c -o atshell
atshell.c:49:31: error: readline/readline.h: Datei oder Verzeichnis nicht gefunden
atshell.c:50:30: error: readline/history.h: Datei oder Verzeichnis nicht gefunden
atshell.c: In function ‘main’:
atshell.c:189: warning: assignment makes pointer from integer without a cast
make: *** [atshell] Fehler 1

<<< Compiling bccmd
gcc -lbluetooth -lusb csr.c csr.h csr_3wire.c csr_bcsp.c csr_h4.c csr_hci.c csr_usb.c ubcsp.c bccmd.c -o bccmd

<<< Compiling btftp
gcc -lbluetooth -lopenobex -lreadline -lxml2 obex.c sdp.c folder.c main.c -o btftp
folder.c:32:30: error: libxml/xmlmemory.h: Datei oder Verzeichnis nicht gefunden
folder.c:33:27: error: libxml/parser.h: Datei oder Verzeichnis nicht gefunden
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’
main.c:46:31: error: readline/readline.h: Datei oder Verzeichnis nicht gefunden
main.c:47:30: error: readline/history.h: Datei oder Verzeichnis nicht gefunden
main.c: In function ‘event_hook’:
main.c:213: error: ‘rl_done’ undeclared (first use in this function)
main.c:213: error: (Each undeclared identifier is reported only once
main.c:213: error: for each function it appears in.)
main.c: In function ‘attempted_completion’:
main.c:232: error: ‘rl_line_buffer’ undeclared (first use in this function)
main.c:233: warning: assignment makes pointer from integer without a cast
main.c:236: error: ‘rl_attempted_completion_over’ undeclared (first use in this function)
main.c: In function ‘main’:
main.c:332: error: ‘rl_readline_name’ undeclared (first use in this function)
main.c:333: error: ‘rl_event_hook’ undeclared (first use in this function)
main.c:334: error: ‘rl_attempted_completion_function’ undeclared (first use in this function)
main.c:337: warning: assignment makes pointer from integer without a cast
make: *** [all] Fehler 1
mv: Aufruf von stat für „btftp“ nicht möglich: Datei oder Verzeichnis nicht gefunden

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

<<< Compiling bss
gcc -c bss.c
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

<<< Compiling carwhisperer
gcc carwhisperer.c -o carwhisperer -lbluetooth

<<< Compiling greenplaque
cc -c -o src/greenplaque.o src/greenplaque.c
cc -o src/greenplaque src/greenplaque.o -lbluetooth -lpthread -D_REENTRANT
rm src/greenplaque.o

<<< Compiling hidattack
cc -Wall -lbluetooth hidattack.o sdp.o -o hidattack

<<< Compiling redfang
./redfang/fang
./redfang/fang.1
./redfang/fang.c
./redfang/fang.o
./redfang/INSTALL
./redfang/Makefile
./redfang/Makefile.am
./redfang/Makefile.in
./redfang/README
fang.c:78:9: warning: unknown escape sequence '\@'
linux-zsoe:/home/stefan/src/bluediving-0.9/tools #
 
OP
C

Conax

Hacker
von libreadline und expat konnte ich in yast keine -devel pakete finden.

Das -devel Paket für sox brächte aber noch ein Paket mit dem Namen "libschroedinger" was aber wohl über yast nicht bezogen werden kann
 

Grothesk

Ultimate Guru
'Packman' heißt das Zauberwort:

http://packman.links2linux.de/package/libschroedinger

Packman als Quelle installieren, dann kann man den ganzen Sums auch per yast installieren.
 
OP
C

Conax

Hacker
Ich hab ja die packman repo in yast mit drin.

ich schreib ma genau was das steht wenn ich ein häkchen bei sox-devel setze.

libschroedinger-devel-1.0.5.0.pm.3.i586 benötigt libschroedinger-1_0-0 = 1.0.5-0.pm.3, was aber nicht angeboten werden kann.
 

whois

Ultimate Guru
?

http://packages.opensuse-community.org/index.jsp?distro=openSUSE_111&searchTerm=libschroedinger-1_0-0+%3D+1.0.5-0.pm.3
 

oc2pus

Ultimate Guru
hier ist das spec-file für 10.3 und 11.0

Code:
# Copyright (c) 2009 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# norootforbuild

%define _prefix	/usr

Name:			bluediving
Summary:		Bluediving is a Bluetooth penetration testing suite
Version:		0.9
Release:		0.pm.1
License:		GPL
URL:			http://bluediving.sourceforge.net/
Group:			Productivity/Multimedia/Other
Source:			%{name}-%{version}.tgz
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:	bluez-libs
BuildRequires:	bluez-utils
BuildRequires:	libschroedinger-devel
BuildRequires:	openobex-devel
BuildRequires:	readline-devel
BuildRequires:	perl-XML-Simple
BuildRequires:	sox-devel
Requires:		perl-XML-Simple
Requires:           mpg123
Requires:           sox 

%description
Bluediving is a Bluetooth penetration testing suite.

It implements attacks like Bluebug, BlueSnarf, BlueSnarf++,
BlueSmack, has features such as Bluetooth address spoofing,
an AT and a RFCOMM socket shell and implements tools like
carwhisperer, bss, L2CAP packetgenerator, L2CAP connection
resetter, RFCOMM scanner and greenplaque scanning mode (using
more than one hci device).

%debug_package

%prep
%setup -q -n %{name}-%{version}
find . -name *.o | xargs %__rm

%build
pushd tools
	./make_tools.sh
popd

%install
%__install -dm 755 %{buildroot}%{_bindir}
for i in atshell attest bccmd bdaddr \
		bss btftp btobex carwhisperer \
		greenplaque hcidump-crash \
		hidattack hstest l2cap_headersize_overflow \
		l2cap-packet redfang rfcomm_shell; do
	%__install -m 755 tools/$i \
		%{buildroot}%{_bindir}
done

%__install -dm 755 %{buildroot}%{_datadir}/%{name}
%__install -m 755 bluedivingNG.pl \
	%{buildroot}%{_datadir}/%{name}
%__install -m 644 bluedivingNG.conf \
	%{buildroot}%{_datadir}/%{name}

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc AUTHORS LICENSE README TODO
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%changelog
* Mon Jan 19 2009 oc2pus - 0.9-0.pm.1
- initial build 0.9

das nach /usr/src/packages/SPECS/bluedive.spec kopieren
das tar.gz nach /usr/src/packages/SOURCES kopieren
cd /usr/src/packages/SPECS
rpmbuild -ba bluedive.spec

ggfl alle Pakete welche fehlen nachinstallieren :)
das Ergebnis Paket bluediving-0.9 steht dann in /usr/src/packages/RPMS/i586 oder .../x86_64

es fehlen evtl noch ein paar "Requires: ..." (hatte ich keine Lust mehr die rauszufrimeln ...)

oder warte noch ein wenig, dann steht das Paket bei packman zum download bereit:
http://packman.links2linux.de/package/bluediving
 
OP
C

Conax

Hacker
So habs jetzt über Packman geholt.

Danke für die Hilfe. ;)

Musste zwar noch libbluez ziehen damit bluediving ging aber jetzt ist alles installiert.

Ich teste es mal morgen und dann wird sich zeigen ob es läuft oder nicht.

So stand von heute:
Getestet und funktioniert.

Bei manchen tools muss ich mich zwar noch ein bisschen einarbeiten aber das ist dann was fürs Wochenende. Bin ja mal gespannt wie es so um die Sicherheit meines bluetooth Handy's steht.
 

oc2pus

Ultimate Guru
Musste zwar noch libbluez ziehen damit bluediving ging aber jetzt ist alles installiert.

wie hast du es installiert ?
mit YaST/zypper oder als direkt download und dann mit rpm -i bzw rpm-Uhv ?

eigentlich sollte libbluez durch den Paketmanager mitinstalliert werden.
 
Oben