Comments (6)
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.
Hi, can you share your jython version? Also, run platform.system()
and write the value as well.
from analyze-community-ghidra-plugin.
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.
@themyops I fixed that, sort of, with #10
from analyze-community-ghidra-plugin.
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.
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)
- Error while running script on Ghidra 9.2 HOT 8
- Python Requests Error HOT 2
- Error when running script HOT 5
- Feature request HOT 2
- Ghidra 10.1.1 not showing up? HOT 4
- Ghidra Bridge / Python3 port HOT 1
- OS Name Not Detected Properly in Ubuntu 22.04 LTS
- AttributeError HOT 4
- UnicodeEncodeError HOT 3
- Incompatibility with the current Jython? HOT 7
- Error running script HOT 7
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 analyze-community-ghidra-plugin.