On 05/27/2019 12:16 AM, hack3rcon wrote:
Why are you starting with openSUSE 42.x when 15.1 is out? It’s not a huge
failure to use 42.x, but if you’re starting out you should probably start
with the latest so you can become familiar with it the most while it is in
active support, and be on a version most people will be installing today.
> Thank you.
> According to ‘this guide’
> (https://bash-prompt.net/guides/server-hacked/), I checked the server by
> some commands like “w”, “last” and “history” but I can’t see any unusual
> things. I checked Apache log and found somethings :
>
> [image: https://postimg.cc/QBZCYxqD]
>
> As you see, someone hacked my system by a proxy from the Russia. They
> use a file with the name “dd.rar”, but how this happened? OpenSUSE
> firewall activated:
Um… where do you see that? Having a log file is a good start, but
understanding it is something else entirely. This is showing clients,
some possibly from Russia, and mostly shows your server rejecting them
with appropriate return codes.
P.S. Pasting text is appreciated, as it is much more searchable,
indexable, and easier to move around (you could trivially paste your logs
here, for example). With logs here we could possibly help you understand
what they mean better, and that would be a good first step for you at this
point.
> Code:
> --------------------
>
> $ sudo systemctl status SuSEfirewall2
>
> --------------------
>
>
> And:
> [image: https://postimg.cc/HJPGcb9j]
If you are new to having a server (regardless of distribution or OS) then
the first thing you do should probably NOT be putting it on the Internet.
Even if you do, though, you shouldn’t immediately be “hacked” (unless
you’re running something very insecure from the start), but you will
certainly see a lot of drive-by scanners like these; welcome to having a
server on the public Internet; that’s normal.
> How can I find how they did it? if they cleared their logs then how can
> I recover it?
If you have deleted files then recover them from a backup. If you do not
have a backup, then get a backup. Better yet send logs to a dedicated log
server which is separate and writing to a write-once-read-many (WORM)
device. Of course, all of this is probably overkill for you since you are
not an enterprise and are just starting out, but this is how it can be done.
> It is the second times that I installed OpenSUSE and my server hacked.
You need to start with dropping assumptions about what you are seeing in
the logs. Understand the logs, what they actually mean, and what that
means for your computer.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.