Git Product home page Git Product logo

Comments (6)

themyops avatar themyops commented on June 21, 2024

This is an ugly fix which may well break the script on Windows - no idea how the environment presents there. I'm running ghidra on barebones kali / debian.

from analyze-community-ghidra-plugin.

davidt99 avatar davidt99 commented on June 21, 2024

Hi, can you share your jython version? Also, run platform.system() and write the value as well.

from analyze-community-ghidra-plugin.

themyops avatar themyops commented on June 21, 2024

I'm running Ghidra 9.1.2 public, which comes with Jython standalone, v 2.7.1 (jython-standalone-2.7.1.jar) as part of the Ghidra tarball.

Run from inside Ghidra, the output of a plaform script

import platform
print(platform.system())

is:

platform.py> Running...
Java
platform.py> Finished!

Would be interested to see what this turns up with Ghidra on Windows, but I don't have that set up.

from analyze-community-ghidra-plugin.

dmoore44 avatar dmoore44 commented on June 21, 2024

@themyops I fixed that, sort of, with #10

from analyze-community-ghidra-plugin.

mgreen27 avatar mgreen27 commented on June 21, 2024

I think I fixed this issue in this PR - 1b4c869

I am using a Ghidra docker image that uses openjdk:11-jdk-slim.

from analyze-community-ghidra-plugin.

utkonos avatar utkonos commented on June 21, 2024

Greetings,

The following pull request change may help you:
#20

Also, if that does not help you, the diagnostic process that I used to view how each of the conditions resolves inside Ghidra should at least show you where the problem is located:

>>> import os
>>> import sys
>>> (os.name == "Posix") and (("Linux") in os.uname())
False
>>> os.name == "java"
True
>>> ("Darwin") in os.uname()
True
>>> os.name == "nt" or ("windows") in java.lang.System.getProperty("os.name").lower()
False
>>> os.name
PyShadowString('java', 'posix')
>>> os.uname()
('Darwin', 'example.com', '20.6.0', 'Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64', 'x86_64')

from analyze-community-ghidra-plugin.

Related Issues (12)

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.