SIM800l Httpaction. Can't get 0,200 or 0,200 - embedded

I'm playing with HTTP GET and POST methods and I have problem. My problem is next one: Last week my GET method was work perfect and then suddenly stop working. Problem occur because MCU can't got response in this format: 0,200,xxx. Code is identical 100%. MCU always got this response: 0,603 (DNS error). Next commands and responses I send/receive to/from SIM800l:
Signal strength | at command: AT+CSQ | response +CSQ: 20,0
Full functionality | at command: AT+CFUN=1 | response OK
If bearer is open send | at command: AT+SAPBR=0,1 | response OK
Otherwise do nothing
Set bearer for gprs | at command: AT+SAPBR=3,1,"CONTYPE","GPRS" | response OK
Set APN | at command: AT+SAPBR=3,1,"APN","internet" | response OK
Set USERNAME | at command: AT+SAPBR=3,1,"USER","telenor" | response OK
Set PASSWORD | at command: AT+SAPBR=3,1,"PWD","gprs" | response OK
Is bearer opened | at command: AT+SAPBR=2,1 | response +SAPBR: 1,3,"0.0.0.0"
Open bearer | at command: AT+SAPBR=1,1 | response OK
Init http | at command: AT+HTTPINIT | response OK
Enable SSL | at command: AT+HTTPSSL=1 | response OK
Set profile identifier | at command: AT+HTTPPARA="CID",1 | response OK
Set url | at command: AT+HTTPPARA="URL","https://mondo.rs/" | response OK
Set GET action | at command: AT+HTTPACTION=0 | response 0,603,0
When I got this response I send again same at command, and result is same (sometimes response from SIM800l is 0,604,0). I use laboratory psu ( which is stable and enough for SIM800l).
Stiil I can send SMS, read all messages,.. without problem. What can be problem?

I find solution for problem, mainly sim800l need firmware upgrade.
Follow steps:
Download SIM800_Series_download_Tools_Customer_v1.19.rar(for win) https://simcom.ee/documents/?dir=SIM800x and driver MTK_USB_DRIVER.rar
Look what firmware is currently on sim800 with AT+CGMR, my firmware was 1418B02SIM800L24. Here B02 is interested for us.
sim800l have 2 different hardware models L16 and L24. If your firmware version have L16 on the end of firmware mark download new firmware from https://simcom.ee/documents/?dir=SIM800L. Otherwise (L24) download new firmware from https://letmeknow.fr/blog/2018/01/09/tuto-update-firmware-sim8xx/. I know that is French blog but only there I find firmware for sim800l model L24. After uploading new firmware and calling AT+CGMR you will get 1418B05SIM800L24. So now firmware version is B05 and you can send(get) messages to the web-sites without problem.
Don't forget that this module is 2G and receiving characters from modern https web-site will take some time (a few tenths of a second).

Related

Camel FTPS Connection Login Failure

I have IIS FTPS Server setup and am trying to connect from a Camel route. But I'm getting the error:
22 Sep 2019 08:59:51,650 | WARN | Camel (Test) thread #202 -
ftps://test#test1834:21/BO/Salary | FtpConsumer | 248 -
org.apache.camel.camel-core - 2.17.0.redhat-630347 | Cannot
connect/login to: ftps://test#test1834:21. Will skip this poll.
I can connect via FileZilla client and perform any read/write operation.
Credentials have been verified.
Camel-Core version 2.17.0
Is anyone familiar with this issue?
this flag "isImplicit=true" is no longer valid for Camel version 3.7.0
The new flag is "implicit=true"
Take a look at the endpoint configuration, you probably should set the security mode isImplicit=true

How to use Patator to brute force HTTP Basic Auth

I'm doing some password cracking experiments with different tools. I've a local set up within VMWare Workstation. I have a website protected by HTTP Basic Auth (A dialog pops up when i browse to it).
I'm struggling with the syntax of Patator though - I cant make it brute force the website (tools like Ncrack and Hydra worked OK). I have used it for SSH so i know the tool works, just can't figure the command for HTTP Basic Auth
patator http_fuzz auth_type=basic url=http://10.1.1.15 user_pass=FILE0:FILE0 0=./passwd_lists/user_pass.txt -x ignore:code=401
Where user_pass.txt contains a 'username':'password' separated by a colon
Basic Auth password is '123' and the user_pass.txt contain all permutations from 000 - 999, the username is consistent throughout. I can see Patator making 1000 attempts however they all fail with a HTTP 401
11:26:27 patator INFO - 401 672:456 0.001 | molly:969 | 970 | HTTP/1.1 401 Unauthorized
11:26:27 patator INFO - 401 672:456 0.001 | molly:979 | 980 | HTTP/1.1 401 Unauthorized
11:26:27 patator INFO - 401 672:456 0.001 | molly:989 | 990 | HTTP/1.1 401 Unauthorized
11:26:27 patator INFO - 401 672:456 0.001 | molly:999 | 1000 | HTTP/1.1 401 Unauthorized
11:26:28 patator INFO - Hits/Done/Skip/Fail/Size: 1000/1000/0/0/1000, Avg: 732 r/s, Time: 0h 0m 1s
I think i have the command syntax incorrect, any help really appreciated.
Thanks
Turns out i had the syntax incorrect, my user name and password were colon separated in one file, so the syntax should be
patator http_fuzz auth_type=basic url=http://10.1.1.15 user_pass=FILE0 0=./passwd_lists/user_pass.txt -x ignore:code=401
The difference being the single reference to to FILE0

cannot change properties of db-32.log

I am getting below Error in Fuse log. In order to solve it I thought I will give permission to db-32.log file but it doesn't allow me to change permission of this file. Instead I get a warning
"cannot change properties of db-32.log"
Please find below the error log
07:17:20,163 | INFO | AMQ-1-thread-1 | ActiveMQServiceFactory | 197 -
io.fabric8.mq.mq-fabric - 1.2.0.redhat-621084 | Broker amq failed to start.
Will try again in 10 seconds
07:17:20,163 | ERROR | AMQ-1-thread-1 | ActiveMQServiceFactory | 197 -
io.fabric8.mq.mq-fabric - 1.2.0.redhat-621084 | Exception on start:
/opt/install/jboss/jboss-fuse-6.2.1.redhat-084/data/amq/kahadb/db-32.log
(Permission denied)
java.io.FileNotFoundException: /opt/install/jboss/jboss-fuse-6.2.1.redhat-
084/data/amq/kahadb/db-32.log (Permission denied)
at java.io.RandomAccessFile.open0(Native Method)[:1.8.0_91]
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)[:1.8.0_91]
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)[:1.8.0_91]
Do you restart the broker under a different user than was previously used to run the broker?
Make sure the OS level user that runs the broker has full access to the configured KahaDB folder on the file system.

Connecting to Kerberized solr on cloudera from karaf

I'm trying to connect to Solr (non cloud) which has Kerberos enabled from my SolrJ application running in Karaf container.
With Kerberos disabled, I'm able to connect fine.
With Kerberos enabled, I'm able to connect outside of Karaf by running a simple SolrClient class.
But its not working from within karaf.
Code:
System.setProperty("java.security.auth.login.config", "<path to jaas.conf file>");
String urlString = "http://<IP>:8983/solr/test";
SolrServer server = new HttpSolrServer(urlString);
QueryResponse sresponse = server.query( squery );
Exception in Karaf on trying to query:
2016-12-15 15:02:17,969 | WARN | l Console Thread | RequestTargetAuthentication | ? ? | 271 - wrap_mvn_org.apache.httpcomponents_httpclient_4.3.2 - 0.0.0 | NEGOTIATE authentication error: No valid credentials p
rovided (Mechanism level: No valid credentials provided (Mechanism level: Invalid option setting in ticket request. (101)))
2016-12-15 15:03:10,731 | ERROR | l Console Thread | Error:org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSol
rException: Expected mime type application/octet-stream but got text/html. Apache Tomcat/6.0.44 - Error report HTTP Status 401 - Authentication requiredtype Status reportmessage Authentication requireddescription This request requires HTTP authentication.Apache Tomcat/6.0.44

Jitsi conversation history location

I am customizing Jitsi and I just want to ask if Jitsi stores conversation locally
or on server ?
If it stores locally than what is its location ? I have searched a lot but I am helpless. Please Help !
If you have Jitsi, the Java XMPP client, then your message history should be stored locally in an XML file if you haven't disabled the logging. The exact location depends on your OS. I would assume the default Java application storage locations like
Windows: %AppData%\Jitsi\history_ver1.0\messages
Mac: ~/Library/Application Support/Jitsi/history_ver1.0/messages
Linux: ~/.jitsi/history_ver1.0/messages
You can add a log statement to see the document that is being written and specifically to which file in the HistoryImpl source.
If you are using Jitsi-Meet, the browser based client, then your message history is not stored permanently by default as far as I know.
No matter which client you are using, on the server, your messages may or may not be stored. The following assumes you are connecting to an XMPP server. If you are using a XMPP server that chooses to store your messages through the XEP Message Archive Management, it will be stored. In that case it will be in the storage backend of the XMPP server, most likely a SQLite/MySQL/Postgres database. If you've used the Debian quick install, by default, Jitsi-Meet installs the XMPP server, Prosody, and routes all your chats there. Prosody supports MAM but it isn't on by default as of version 0.9 (it requires version 0.10+ according to their xeplist).
Note network architecture looks like follows. At any point if you are logging messages, then you could potentially find/reconstruct your message history.
Client (Jitsi or Jitsi-Meet browser frontend)
| |
| |
v |
443 |
+-------+ |
| | |
| NginX | |
| | |
+--+-+--+ |
| | |
+------------+ | | +--------------+ |
| | | | | | |
| jitsi-meet +<---+ +--->+ prosody/xmpp | |
| |files 5280 | | |
+------------+ +--------------+ v
5222,5347^ ^5347 4443
+--------+ | | +-------------+
| | | | | |
| jicofo +----^ ^----+ videobridge |
| | | |
+--------+ +-------------+
Diagram taken and slightly modified from the manual-install.md file in jitsi-meet's repo.