Question: I'm asking about **Suricata**

Is there way to write a conditional alert?

For example - alert of HTTP GET if the server status to the request is "success"

Thanks,
Efrat

Answer: 
Stetho from Facebook allows you to view the on device database (as well as other things) using Chrome developer tools. It's very easy to set up and use.
<http://facebook.github.io/stetho/>
First of all, you cannot see inside of `/data/data/` as it is not browsable unless you have root permission. But, you can access it by code.

the `mnt`, abbreviation of `mount`, is appeared as the Android Studio gives right to browse the path including your db file for development purpose.

Check out below code to copy *only accessible but not browsable* database file to somewhere you wanted. Note that only the app which creates the database has privilege to run this code. 

```
File f=new File("/data/data/your.app.package/databases/your_db"); // case-sensitive!
FileInputStream fis=null;
FileOutputStream fos=null;

try
{
  fis=new FileInputStream(f);
  fos=new FileOutputStream("/mnt/sdcard/db_dump.db"); // target location
  while(true)
  {
    int i=fis.read();
    if(i!=-1)
    {fos.write(i);}
    else
    {break;}
  }
  fos.flush();
  Toast.makeText(this, "DB dump OK", Toast.LENGTH_LONG).show();
}
catch(Exception e)
{
  e.printStackTrace();
  Toast.makeText(this, "DB dump ERROR", Toast.LENGTH_LONG).show();
}
finally
{
  try
  {
    fos.close();
    fis.close();
  }
  catch(IOException ioe)
  {}
}

```

Note that this code is copied from: <https://stackoverflow.com/a/13154281/361100>