Comments (5)
I must be missing something obvious, but your listing of /
(last snippet) shows the permissions and last modified time of the directories in the /
directory. What do you think is missing exactly?
from sliver.
What is missing is the permissions and modified time of the ‘/‘ directory itself. Not the things inside it.
For example, it’s not currently known if ‘/‘ is world writable.
from sliver.
Ok I get it now, I was confused by the additional info not showing any difference between the two examples (/
vs /etc/rsyslog.d
). Right now we're calling os.ReadDir()
on the provided path (well, when it's a directory), which doesn't return anything for the root element of the path itself.
For a quick sanity check, I just tested with /bin/ls
on MacOS and /usr/bin/ls
on an Ubuntu 22.04 box and I'm not getting any details about the root element either when doing /bin/ls /
. So at least we seem to be consistent with the system's ls
binary, unless once again I'm missing some context here.
When you say:
It should be possible to see modified time of '/' directory using ls and not relying on something like execute.
Do you have an example of the command you're using with execute
to get a different result than what the built-in ls
command does?
EDIT: nevermind I'm not fully awake yet, ls -la
will not ignore .
and this is the way to get the info with the system's ls
binary.
from sliver.
A potential solution could be to add a .
entry on Unix/Linux systems that fetches the info of the inode matching the requested directory entry (top/root level).
from sliver.
Adding the '.' entry would be awesome! It would prevent needing additional runs of 'ls' and should be easy to parse.
from sliver.
Related Issues (20)
- Stager shellcode generation fails on Kali VM on Apple Silicon (ARM) Mac HOT 2
- changing host header does not work HOT 8
- Armory update/install is not working as expected
- Unable to run DNS C2 on latest version HOT 3
- How can I remove rportfwd? HOT 2
- COFFLoader x86 release 1.0.14 uses libgcc_s_dw2-1.dll
- Ported Remote Ops Bof: Injection HOT 1
- compile it with make and run . /sliver-server,it says: zsh: exec format error: . /sliver-server. HOT 3
- go-assets.sh: /bin/bash^M: bad interpreter: No such file or directory HOT 1
- panic: runtime error: index out of range [1] with length 1 HOT 4
- Wg connectivity issues HOT 1
- How to generate stager on linux? HOT 4
- NetHunter Kali Termux : Sliver Client Frozen Upon Running
- PS command causes implant on Darwin to spin the CPU at 100% indefinitely
- Using screenshot under http implant HOT 2
- Which version can create dns c2 HOT 1
- make master sliver not 1.6 version HOT 1
- The cmd window is not hidden when executing the command
- sliver-client's config directory hard-coded to `~/.sliver-client/`
- DNS C2 - no communication
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 sliver.