LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-22-2023, 12:49 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Rep: Reputation: 10
Post How to change Linux version fakely?


Hello,
I have installed Debian on a system and when I scanned it via a scanner like Nmap, scanner can detect it. Is it possible to change a part of Linux so that the scanner detects Red Hat instead of Debian?
Sorry if the question is a bit strange.

Thank you.

Last edited by Jason.nix; 11-24-2023 at 11:01 AM.
 
Old 11-22-2023, 01:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,021

Rep: Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343
that is just nonsense. I don't know how the scanner checks the OS, there are a few files around there, probably you need to modify /etc/release and siblings only. But probably it makes more serious checks which cannot be faked (that means you will need modify your system). And anyway, what's the goal? What do you want to achieve with it?
 
Old 11-22-2023, 02:05 AM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 979

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
It's more complex than that - nmap uses a combination of responses rather than a single point of detection, and yet it can be fooled e.g. with https://ippersonality.sourceforge.net/ It's ancient, but may give a few pointers

Last edited by lvm_; 11-22-2023 at 02:06 AM.
 
Old 11-22-2023, 02:54 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,564

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
I have installed Debian on a Linux system
I'm curious about what that means. Debian is a Linux operating system. Did you install Debian over a pre-existing Linux OS? Or is that a typo, you meant 'as' rather than 'on'?

If you want nmap and similar software to show the system as something other than what it is, I would guess that is possible and you might get some pointers from the link in post 3.

Last edited by yancek; 11-22-2023 at 02:56 AM.
 
Old 11-24-2023, 11:05 AM   #5
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
that is just nonsense. I don't know how the scanner checks the OS, there are a few files around there, probably you need to modify /etc/release and siblings only. But probably it makes more serious checks which cannot be faked (that means you will need modify your system). And anyway, what's the goal? What do you want to achieve with it?
Hello,
Thank you so much for your reply.
I don't like that scanners like Nmap can detect my Linux distribution. What is your suggestion?
 
Old 11-24-2023, 11:06 AM   #6
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by yancek View Post
I'm curious about what that means. Debian is a Linux operating system. Did you install Debian over a pre-existing Linux OS? Or is that a typo, you meant 'as' rather than 'on'?

If you want nmap and similar software to show the system as something other than what it is, I would guess that is possible and you might get some pointers from the link in post 3.
Hello,
Thank you.
It was typo. I corrected it.
 
Old 11-24-2023, 11:07 AM   #7
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by lvm_ View Post
It's more complex than that - nmap uses a combination of responses rather than a single point of detection, and yet it can be fooled e.g. with https://ippersonality.sourceforge.net/ It's ancient, but may give a few pointers
Hello,
Thank you so much for your reply.
Linux 2.4 kernel?
 
Old 11-25-2023, 08:34 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,021

Rep: Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343Reputation: 7343
Quote:
Originally Posted by Jason.nix View Post
Hello,
Thank you so much for your reply.
Linux 2.4 kernel?
The question was how to fake your system to a network side scanner. An answer would be to check that code (and try to apply it to your own system, if you wish).
But as I wrote it is more or less nonsense, everybody can write a tool to identify a remote system. Some of them are running inside browsers, others will analyze network responses, opened ports ...
check for example here: https://nmap.org/misc/defeat-nmap-osdetect.html (yes, 2003)
this is another paper, https://arxiv.org/pdf/1706.08003.pdf...%20Obfuscation
(see at least the conclusion)
 
Old 11-26-2023, 07:45 AM   #9
goldennuggets
Member
 
Registered: Feb 2003
Location: USA
Distribution: Kubuntu, Manjaro
Posts: 239

Rep: Reputation: 24
Quote:
Originally Posted by lvm_ View Post
It's more complex than that - nmap uses a combination of responses rather than a single point of detection, and yet it can be fooled e.g. with https://ippersonality.sourceforge.net/ It's ancient, but may give a few pointers
Here are two more links that you might find helpful in understanding how nmap (specifically) detects an OS. Once armed with a better understanding, then you might be able to start devising a work-around.
https://nmap.org/book/man-os-detection.html
https://nmap.org/book/osdetect.html
 
  


Reply



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
[SOLVED] MinGW - performance is degarding from linux version to win32 version manu-tm Programming 5 07-20-2009 09:17 AM
Default socket name and version in Redhat linux with kernal version 2.4-20-8??? sivareddy_jntu Linux - Networking 1 06-12-2009 02:43 PM
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
who knows the kernel version of each version of linux iamthewind Linux - Software 4 11-17-2003 05:18 AM

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

All times are GMT -5. The time now is 05:37 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