Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/proc/uptime does not exist #1464

Open
mrseeker opened this issue Nov 30, 2020 · 2 comments
Open

/proc/uptime does not exist #1464

mrseeker opened this issue Nov 30, 2020 · 2 comments

Comments

@mrseeker
Copy link
Contributor

Describe the bug
A hacker found a way to check the time using /proc/uptime, which caused an error to pop up.

To Reproduce
Steps to reproduce the behavior:

  1. Log in on cowrie
  2. execute the command "cat /proc/uptime"
  3. No value is returned.

Expected behavior
My server (that the honeypot is based on) gives the following information back:

cowrie@jarvis:~/cowrie$ uptime
 11:05:48 up 9 days, 14:13,  1 user,  load average: 0.00, 0.00, 0.00
cowrie@jarvis:~/cowrie$ cat /proc/uptime
828798.67 1650742.58

Server (please complete the following information):

Additional context
Add any other context about the problem here.

@micheloosterhof
Copy link
Member

This may be a wider issue, where the cat command asked to print the contents of a file that only has meta data defined and no contents gives an error:

root@svr04:~# cat /proc/uptime
cat: /proc/uptime: No such file or directory
root@svr04:~# ls -l /proc/uptime
-r--r--r-- 1 root root 0 2013-04-05 12:25 uptime

@micheloosterhof
Copy link
Member

The quick workaround is to add and entry in honeyfs/proc/uptime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants