Comments (5)
It was popular for a while (still might be) to pass files over stdin over the SSH tty channel to the destination. Then redirect that to a file and execute it. This saves it straight to the file rather than having to extract it from the keystroke log
https://www.cowrie.org/posts/2015-02-19-perl-stdin/
from cowrie.
This seems to affect more than just ls, but redirecting as a whole.
It seems that you can use this to create persistent files on the host OS, which is kinda fun.
Testing from latest Docker build, running on Ubuntu 22.04:
Desktop> ssh [email protected] -p 2222
[email protected]'s password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@svr04:~# touch file.txt
root@svr04:~# echo "hello world" > file.txt
Check the Cowrie FS:
me@ubuntu: sudo ls -l /var/snap/docker/common/var-lib-docker/volumes/d359cfde6ef511f4d3fbf9e18b22128f609d6f856cdd1fcef8d74b2b52af6ade/_data/lib/cowrie/downloads
total 12
-rw-r--r-- 1 lxd 999 12 Jan 4 11:31 20240104-113138-572e7870aa31-0-redir__root_file_txt
Cat the file:
me@ubuntu:
sudo cat /var/snap/docker/common/var-lib-docker/volumes/d359cfde6ef511f4d3fbf9e18b22128f609d6f856cdd1fcef8d74b2b52af6ade/_data/lib/cowrie/downloads/20240104-113138-572e7870aa31-0-redir__root_file_txt
hello world
from cowrie.
Uhm, yes this is the purpose of this. There are certain commands executed that will download from the internet or do other operations, in this case the output of these commands is logged. Closing this ticket.
from cowrie.
Apologies, but that doesn't quite answer why redirection in general is considered as a download and saved as such? Like I get why you'd want to save internet-downloaded files, for analysis and whatnot, but what's in question here is why redirection is considered a download.
from cowrie.
Thanks! That makes more sense.
from cowrie.
Related Issues (20)
- Capture file contents of failed redirects HOT 1
- Failed to load output engine: hpfeeds3 HOT 2
- Issues with libvirt and nftables
- Docker deployment does not break if output plugin is broken HOT 1
- Oracle Cloud custom log output plugin HOT 1
- Run proxy mode + pool in Docker HOT 2
- Error in pool while requesting guest. Losing connection HOT 1
- exceptions.ImportError: No module named cowrie HOT 2
- No module named cowrie, error while playing log from tty HOT 2
- sftp mkdir ./test fails HOT 1
- Can not upload file (permission denied) when run Cowrie as a docker HOT 4
- honeydet detects cowrie HOT 3
- how to see log on cowrie docker. HOT 3
- Issues logging in with Warp as the client. HOT 1
- Vulnerable DSA with key size of 1024 HOT 1
- how to change public and private keys HOT 1
- List all possible log entries for SIEM integration HOT 4
- password while downloading virtual env
- Bad signature for ECDSA error in proxy mode HOT 1
- issues while starting cowrie HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cowrie.