guys I need some help for days now I have been looking for a way for signing firefox XPI file,
but i didn't found any thing that works ( including here ) the posts I found where very old,
and not compadiable with new firefox version.
does any body here know how to?
thanks in advance.
p.s
I want to write a packer\signer in c#
edit:
im using mcCoy CA that MDN says valid.
i know there is a python script that sign add ons but i dont know pyton so please advice something else and for that matter i preferably dont watnt to use java...
If you are asking for a code example in Java, there is XPISigner. However, its source code seems rather complicated, you might have better chances if you look at the signature format description and the simple Python example script. It is mostly simple, the "complicated" part is only generating a detached RSA signature of the META-INF/zigbert.sf file (stored in META-INF/zigbert.rsa). Note that META-INF/zigbert.rsa has to be the first file in the XPI archive.
Related
Currently working on a certificate transparency logs. My goal is to read each log just like what CertStream - (Open the fire hose button) did, my boss wants to create another one that is written in C#. Just a simple code to parse the logs can really help me. Not necessarily as fancy as CertStream does its stuff.
These are the following links/APIs that I've read:
(API's from Google or related)
https://ct.googleapis.com/pilot/ct/v1/get-sth
https://ct.googleapis.com/logs/argon2020/ct/v1/get-entries?start=20200201&end=20200205
https://www.rfc-editor.org/rfc/rfc6962
Valuable info:
https://certstream.calidog.io/
https://stackoverflow.com/questions/59772797/cant-parse-precertificate-from-certificate-transparency-log
For the code I started,
byte[] byte_LeafInput = Convert.FromBase64String(leaf_input);
byte[] byte_extradata = Convert.FromBase64String(extra_data);
string strLeafInput = Encoding.UTF8.GetString(byte_LeafInput);
string strExtraData = Encoding.UTF8.GetString(byte_extradata);
But it only shows some gibberish data with few readable words.
Any codes or libraries that can help me with that? Upon searching, I found so many codes written in different languages like Python, Go, etc., but based on what I understand in their code, they are also using libraries which is not available in NuGet. X509Certificate might be useful but I don't know how to use it in this case.
Any lead would really be appreciated. Thank you.
Upon searching for a long time. My boss advised me to get the logs and parse it through Python and save that in a text file or csv. After that, my program in C# can use all functions to analyze the information in the created text file. I guess using the current wheel is more efficient than creating one. :)
I'm a beginner in c#, I'd appreciate your help.
Here's what I use:
-nRF52840 dk (it is developed by segger embedded studio)
-pc bluetooth (window 10)
Im trying to create a program that scans Ble and receives a value(continuously sent by ble). I have been looking at the Windows-universal-samples.
but when i try to read value, it doesn't work.
enter image description here
How can i solve this problem? Thank you for reading it, and if you know how, please share it.
The LED Characteristic (0x1525) appears to be controlling LED 3 for the nordic_blinky example. My thought is that this might be a write only characteristic and so that is maybe why you are getting the error.
As others have pointed out, it is difficult to know with the little information you have shared. A link to the sample code you are following would be a helpful start.
Also, have you tested the nordic_blinky with general tools? For example, in chrome you can go to the URL: chrome://bluetooth-internals/#devices. It will tell you if the characteristic is readable and writable. Being able to share that would be useful information for others to help. If you are able to read or write in Chrome, then we can be more confident the issue is with your code. Again sharing it working in Chrome and your code that is failing will be helpful for others to assist as to where the issue might be.
Try these experiments and update the question would be my suggestion.
I would like to get the text string saved on an NFC tag in Unity. I'm not experienced with developing for Android, it seems there was already success doing this but it seems to involve extensive use of the Android SDK and Eclipse, neither I'm familiar with.
I found also this thread though the source code is incomplete and I'm not sure how to declare the variables used in this if statement: http://forum.unity3d.com/threads/162834-AndroidJavaObject-as-array-for-NFC-access?p=1115826&posted=1#post1115826
Any usings that I need to import in order to use this snippet and the "var" type variable mentioned in the first post?
OP hasn't been answering all the other questions for over a year now.
I hoped someone here might have an answer for NFC in general.
Pablo from Twinsprite has put a full working example project on GitHub
And he has written a very detailed blog-post about how to create the required plugin yourself.
Works great for me!
For someone else reading in the future, they have an updated link:
The new Link
I am working with this right now and I will keep you updated
I found in http://www.nirsoft.net several browsers' cache viewers. My question relates to only Opera that I wish to learn what apis, functions or methods were used to decode tmp content (opera cache files) into URLs ? I am thankful if you could help, please explain something..
This seems to work pretty nicely for me:
strings .opera/cache/dcache4.url | egrep -o '(https?|ftp)://.*$'
Returns 1944 urls on separate lines for me. If you look at the output of strings you'll find that it looks pretty easy to find out which .tmp file under .opera/cache is related to which url too.
--
strings is a UNIX utility in binutils; the source code is pretty simple and can be found here among other places
egrep just matches a regular expression against the strings; System.Text.RegularExpressions.Regex.Match would do exactly the sam from C#
Opera publicly documents the file format used by the cache file, which should help. (If it doesn't, say so (and why!), and I can push to get the documentation improved!)
Here's the code in question:
#!/usr/bin/python
import pycurl
c = pycurl.Curl()
values = [
("key", "YOUR_API_KEY"),
("image", (c.FORM_FILE, "file.png"))]
# OR: ("image", "http://example.com/example.jpg"))]
c.setopt(c.URL, "http://imgur.com/api/upload.xml")
c.setopt(c.HTTPPOST, values)
c.perform()
c.close()
I've tried to ask for help on how to copy this functionality in C#, but so far none of the answers really help because I need to use my API key or else it doesn't work.
In C#, you can use the WebRequest class to accomplish the same. Take a look at the example toward the bottom of the page "How to: Send Data Using the WebRequest Class" for a code sample.
The code itself looks straightforward. I don't know if pycurl is available as a .NET module (or whatever it's called) so that it can be used directly from ironpython. What's the problem with trying it once?
As far as I know, you should be able to do that just fine.
One of two things will happen:
It will work just fine when you import your code into IronPython
IronPython will throw an error at you saying that it doesn't know where to find cURL. In this case, you will have to add it to your PATH. I believe it is in the sys module (sys.path.append("C:\..path_to_cURL")). Do this at the top of your code and it should be smooth sailing from there
Hope that helps
pycurl appears to be a C-Extension for CPython.
To use this with IronPython you will need to use IronClad (a 'work in progress' project to allow use of c-extensions in the .Net world).