Comments (4)
I've been experimenting with this and still haven't found a proper solution.
from viper.
Whilst not ideal for retaining the original name you could use the string_clean function. This would at least enable it to be stored. then warn that a file was renamed
from viper.
I have added a pull-request that should fix this issue.
Some more info given in the pull-request:
I had a look at this as this is affecting me too.
The main issue is that the __sessions__.current.file.name
is used in different ways around in the code. (str, unicode). I would use unicode everywhere and only convert when legacy functions (like raw_imput) can't handle it. Unfortunately it is a massive and unrealistic job to fix this everywhere.
To resolve this I have added the verification and conversion steps in the most efficient locations.
Going from std_in, the storing of files and the database function.
I have tested opening files (with and without special chars), storing them, loading them from the db, and it seems to work. As a test I have also ran multiple modules with no issue.
I expect some issues to occur here and there, but only with files containing special chars. So this patch should not break existing functionality, but instead extend it.
Mostly solution for the encountered issues will be to encode the unicode variable as can be seen below.
__sessions__.current.file.name.encode('utf-8')
from viper.
Must be fixed since the py3 branch is merged.
from viper.
Related Issues (20)
- update-modules fails when behind a http proxy HOT 1
- viper template improvement request - search_result.html HOT 1
- viper note - need to add created_at and format with <xmp> tag. HOT 1
- authtoken HOT 1
- Module pydns moved to py3dns for Python 3 HOT 3
- Can't found MISP command in the Viper Framework HOT 8
- pydeep on macOS
- Enable users to change their password HOT 5
- can't find viper-web anymore HOT 6
- update-modules fails
- Viper requires old version of asn1crypto, which breaks pip on macOS Catalina HOT 2
- Submit File to Cuckoo through CLI or GUI Not working HOT 2
- Website viper.li returning HTTP status 403 HOT 5
- ERROR: django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag library. Must be one of: HOT 1
- using apikey to access cuckoo from viper-web HOT 1
- Unable to launch Viper HOT 4
- How can be new modules such as CAPA(by fireEye) can be added to viper? HOT 1
- "misp tag -l" -> NameError: name 'Taxonomies' is not defined HOT 2
- IndexError when outputting Base64 strings to a table
- Further maintenance of Viper HOT 1
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 viper.