Skip to content

How to execute arbitrary code in ssh server when receiving entering connections #70

Answered by AleixMT
AleixMT asked this question in Q&A
Discussion options

You must be logged in to vote

I found that /etc/profile.d is a directory that contains scripts that are executed on the login. You can drop a script there and it will be executed on login and its stdout will be redirected to your terminal.

Replies: 1 comment

Comment options

AleixMT
Jan 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by AleixMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant