Skip to content

Commit

Permalink
fix issue with ls
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Aug 7, 2024
2 parents a6f5156 + a9329bc commit 7ab88b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions Payload_Type/poseidon/poseidon/agent_code/ls/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,8 @@ func Run(task structs.Task) {
e.Files = fileEntries
}
msg.Completed = true
tmpData := e
msg.FileBrowser = &e
if !tmpData.IsFile {
tmpData.Filename = "."
}
temp, _ := json.Marshal(tmpData)
temp, _ := json.Marshal(msg.FileBrowser)
msg.UserOutput = string(temp)
task.Job.SendResponses <- msg
return
Expand Down
6 changes: 3 additions & 3 deletions Payload_Type/poseidon/poseidon/browserscripts/ls_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ function(task, response){
let headers = [
{"plaintext": "name", "type": "string", "fillWidth": true},
{"plaintext": "size", "type": "size", "width": 150},
{"plaintext": "user", "type": "string", "width": 200},
{"plaintext": "group", "type": "string", "width": 200},
{"plaintext": "user", "type": "string", "fillWidth": true},
{"plaintext": "group", "type": "string", "fillWidth": true},
{"plaintext": "permissions", "type": "string", "width": 150},
{"plaintext": "modified", "type": "date", "width": 300},
{"plaintext": "modified", "type": "date", "width": 250},
{"plaintext": "ls", "type": "button", "width": 100},
{"plaintext": "download", "type": "button", "width": 100},
];
Expand Down

0 comments on commit 7ab88b1

Please sign in to comment.