Grey Hack

Grey Hack

[Help needed] File.content() when run, returns error
Hi there,

I have written some script where I successfully exploit an ftp overflow vulnerability, and it returns "computer" as guest.
Then I of course set the value of variable passFile = result.File("etc/passwd").
Then I check if I have read permissions with if passFile.has_permission("r"), and in the then clause, I have print(passFile.content)

This throws an error at runtime:
Runtime Error: Key Not Found: 'content' not found in map [line 33]

Any ideas as to how to get it to print the contents of passwd to terminal?

Thanks for any help. I would certainly appreciate it. :)
Originally posted by Skydive gangster:
hm i remember that the update logs mentioned something about partial objects that dont have all the properties of the normal ones. Maybe thats the case?

Are you sure its file.content and not get_content? Havent played in a while
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
hm i remember that the update logs mentioned something about partial objects that dont have all the properties of the normal ones. Maybe thats the case?

Are you sure its file.content and not get_content? Havent played in a while
Yeah it's get_content. Sorry about that. :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50