C
C#16mo ago
Elmishh

✅ what is a .zero resource file?

im looking at some code for an encoder/decoder and it uses a resource file called Aura.zero but its empty (its size is 2 KB), does anyone know what it is?
11 Replies
Elmishh
ElmishhOP16mo ago
using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Aura.zero"))
using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Aura.zero"))
Jimmacle
Jimmacle16mo ago
do you have the actual code that accesses this resource?
Elmishh
ElmishhOP16mo ago
that is the code that accessed it
using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Aura.zero"))
{
using (StreamReader streamReader = new StreamReader(new MemoryStream(UnHush(Read(manifestResourceStream)))))
{
_list = streamReader.ReadToEnd().Split(new string[]
{
Environment.NewLine
}, StringSplitOptions.None).ToList<string>();
}
}
using (Stream manifestResourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Aura.zero"))
{
using (StreamReader streamReader = new StreamReader(new MemoryStream(UnHush(Read(manifestResourceStream)))))
{
_list = streamReader.ReadToEnd().Split(new string[]
{
Environment.NewLine
}, StringSplitOptions.None).ToList<string>();
}
}
private static byte[] Read(Stream A_0)
{
byte[] result;
using (MemoryStream memoryStream = new MemoryStream())
{
A_0.CopyTo(memoryStream); // THIS RETURNS AN NRE
result = memoryStream.ToArray();
}
return result;
}
private static byte[] Read(Stream A_0)
{
byte[] result;
using (MemoryStream memoryStream = new MemoryStream())
{
A_0.CopyTo(memoryStream); // THIS RETURNS AN NRE
result = memoryStream.ToArray();
}
return result;
}
anyone?
Mayor McCheese
Mayor McCheese16mo ago
there's not anything to say what it is; a quick google search shows zero is frequently xeno innovations, some medical company. ¯\_(ツ)_/¯
Elmishh
ElmishhOP16mo ago
yeah i tried googling
Mayor McCheese
Mayor McCheese16mo ago
What are you actually trying to solve?
Elmishh
ElmishhOP16mo ago
theres nothing about that kind of file type im decrpyting some code
Mayor McCheese
Mayor McCheese16mo ago
Sounds pretty sus at this point tbh
Elmishh
ElmishhOP16mo ago
trying to decrpyt a piece of code in a virus that was encrypted using that took me long enough just to get past the compiling errors on the decoder
Jimmacle
Jimmacle16mo ago
File extensions are just suggestions The data could be anything
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server