I have tried to compile dropbear with both patches. But everytime it shows ::
I'm late to this question, but you need to build dropbear from sources or could you use a prebuilt version?
Sent from my VK810 4G using Tapatalk
I have tried to compile dropbear with both patches. But everytime it shows ::
netbsd_getpass.c:68:18: error: '_PASSWORD_LEN' undeclared (first use in this function)
I'm late to this question, but you need to build dropbear from sources or could you use a prebuilt version?
svr-chansession.c
addnewvar("LD_LIBRARY_PATH", "/system/[COLOR="Red"]lib[/COLOR]");
addnewvar("LD_LIBRARY_PATH", "/system/[COLOR="Lime"]lib64[/COLOR]");
[COLOR="lime"]/*[/COLOR] addnewvar("LD_LIBRARY_PATH", "/system/lib64"); [COLOR="Lime"]*/[/COLOR]
tar xjf dropbear-2015.67.tar.bz2
cd dropbear-2015.67
patch -p1 < dropbear-v67-android-patch-20150630
./configure --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi \
--disable-zlib --disable-largefile --disable-loginfunc \
--disable-shadow --disable-utmp --disable-utmpx --disable-wtmp \
--disable-wtmpx --disable-pututline --disable-pututxline --disable-lastlog
#define USE_DEV_PTMX 1
STATIC=1 MULTI=1 SCPPROGRESS=0 PROGRAMS="dropbear dropbearkey scp dbclient" make strip
./dropbear -h
Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html
Usage: ./dropbear [options]
-A Android Mode, specify a user explicitly
-N Android Mode, user name
-C Android Mode, password
-R Android Mode, public key file (authorized_keys)
-U Android Mode, UID
-G Android Mode, GID
-b bannerfile Display the contents of bannerfile before user login
(default: none)
-r keyfile Specify hostkeys (repeatable)
defaults:
dss /etc/dropbear/dropbear_dss_host_key
rsa /etc/dropbear/dropbear_rsa_host_key
ecdsa /etc/dropbear/dropbear_ecdsa_host_key
-F Don't fork into background
-E Log to stderr rather than syslog
-m Don't display the motd on login
-w Disallow root logins
-s Disable password logins
-g Disable password logins for root
-B Allow blank password logins
-j Disable local port forwarding
-k Disable remote port forwarding
-a Allow connections to forwarded ports from any host
-p [address:]port
Listen on specified tcp port (and optionally address),
up to 10 can be specified
(default port is 22 if none specified)
-P PidFile Create pid file PidFile
(default /var/run/dropbear.pid)
-i Start for inetd
-W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
-K <keepalive> (0 is never, default 0, in seconds)
-I <idle_timeout> (0 is never, default 0, in seconds)
-V Version
But, unhappily, the function getpass is not provided by the Android C library (Bionic). If you try to build with a "corrected" patch, you end up with this error:
Code:cli-auth.o:cli-auth.c:function getpass_or_cancel: error: undefined reference to 'getpass'