I'd like to download a file as executable through elinks command line in linux. How to do it? by default, saved file is not executable (rw/r/r).
Asked
Active
Viewed 792 times
2
-
What would the use case for this be? It sure seems like you are asking for a way to get hacked. – Zoredache Mar 18 '14 at 02:54
-
I'm doing pen testing and chmod is not available nor scp, so I was wondering if there is a way to change a file to executable – REALFREE Mar 18 '14 at 18:16
-
Can you run perl/python/ruby/c/c++/etc? There are language functions that set permissions without using `/bin/chmod`. – Zoredache Mar 18 '14 at 18:22
-
nope, target machine is very strict (i.e chroot). There are not much options I can use on that machine – REALFREE Mar 19 '14 at 00:16
1 Answers
1
AFAICS this is intended behaviour—there seems to be no way to change this, except you're willing to patch the code.
Andreas Wiese
- 2,111
- 16
- 13