Git Product home page Git Product logo

capanalysis's Introduction

General Information

Xplico is a Network Forensic Analisys Tool NFAT, for Unix and Unix-like operating systems. It uses libpcap, a packet capture and filtering library.

The official home of Xplico is: http://www.xplico.org

The latest distribution can be found in the subdirectory: http://www.xplico.org/download

Installation

Xplico is known to compile and run on the following systems:

  • Linux (2.4 and later kernels, various distributions)
  • CPU taget: x86 multicore (Xplico use all cpu)
    • ARM
    • XScale

Full installation instructions can be found in the INSTALL file.

Usage

We describe here only console-mode modality, if you use Web interface then you have to see INSTALL and with root permision run /opt/xplico/script/sqlite_demo.sh.

Xplico in console-mode permit you to decode a single pcap file, directory of pcap files or decode in realtime from an ethernet interface (eth0, eth1, ...). To select the input type you have to use -m option. The '-m' option permit you to load a particular xplico capture interface (capture-module). The possible capture interfaces are 'pcap' and 'rltm'. If you run "./xplico -h -m pcap" you have an help of use of pcap interface, obviously "./xplico -h -m rltm' give you an help to use realtime interface. In console-mode all file extracted by xplico are placed in 'tmp/xplico/' direcory, every protocol has a particular directory, and inside this direcory you can find the decoding data. For example:

  • if you have to decode test.pcap, you have to launch this command: ./xplico -m pcap -f test.pcap at the end of decoding your files are in xdecode/ip/http, xdecode/ip/pop, xdecode/ip/smtp, ... and kml file (Google Earth) is in xdecode/ip/

  • if you have to decode a direcotry "/tmp/test" where inside there are many pcap files you have to launch this command: ./xplico -m pcap -d /tmp/test at the end of decoding your files are in xdecode/ip/http, xdecode/ip/pop, xdecode/ip/smtp, ... and kml file (Google Earth) is in xdecode/ip/

  • if you have to decode eth0 in realtime the command is: ./xplico -m rltm -i eth0 to break acquisition: ^C. At the end of decoding (decoding is in realtime) your files are in xdecode/ip/http, xdecode/ip/pop, xdecode/ip/smtp, ... and kml file (Google Earth) is in xdecode/

Xplico has many decoding modules, these modules are in 'modules' directory, to enable or disable a module you have to modify the xplico.cfg file (by default in ./config/ directory) The GeoMap file (kml) for Google Earth is updated every 30 sec.

./xplico -g give you a graph of relations between the dissectors.

How to Report a Bug

Xplico still under constant development, so it is possible that you will encounter a bug while using it. Please report bugs at [email protected] .

Disclaimer

There is no warranty, expressed or implied, associated with this product. Use at your own risk.

Enjoy.

capanalysis's People

Contributors

gnlcosta avatar m0rf30 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capanalysis's Issues

capanalysis[25392]: failed!

I have recently installed CapAnalysis on my Debian 64bit using the .deb file.
After I restart the service this is what I have got if I run service capanalysis status

capanalysis.service - LSB: Starts/stop Capanalysis PCAP viewer
   Loaded: loaded (/etc/init.d/capanalysis)
   Active: active (exited) since Sun 2016-06-05 16:34:20 NZST; 6s ago
  Process: 25385 ExecStop=/etc/init.d/capanalysis stop (code=exited, status=0/SUCCESS)
  Process: 25392 ExecStart=/etc/init.d/capanalysis start (code=exited, status=0/SUCCESS)

Jun 05 16:34:20 bobby capanalysis[25392]: Starting : capanalysis  Error, Apa...g
Jun 05 16:34:20 bobby capanalysis[25392]: failed!
Hint: Some lines were ellipsized, use -l to show in full.

And CapAnalysis is not working on localhost:9877

CapAnalysis VM keeps aborting during data uploads

Hello Gianluca,

I've got the Debian binary release package (CapAnalysis_1.2.0_amd64.deb) running in a debian 8.4.0 VM using VirtualBox under RHEL6. The VM has 4 cores, 4GB Ram, and a 256GB Fixed Allocation HDD. I edited the php.ini file to enable larger sized downloads (if fact, I set both post_max_size AND upload_max_filesize to ZERO to remove the size restriction, and changed the max upload count from 20 to 50. I am uploading a data set of about 150GB in 1GB pieces.

Using both the "drag-and-drop" and "click-to-select-files" methods for uploading pcaps, the VM will nearly always abort while uploading a set of files. I have not been able to tie the abort to any particular file, any particular file size, or any particular volume of data already received by the VM.

Any thoughts? Is there anything I can do to turn-on and/or view some sort of logging to try and figure out where things are going bad?

Thanks,
joe

Can't build project

Hey,

I clone the repo and tried to build it but it didn't work. I simple try a 'make', because I can't find any configure/autogen or hint in the README what I should do before 'make'. But I get the error message: "make[1]: Entering directory '/home/pstengel/investigations/8com/project_8com/capanalysis/pcapseek'
make[1]: Leaving directory '/home/pstengel/investigations/8com/project_8com/capanalysis/pcapseek'
cc -rdynamic -I/home/pstengel/investigations/8com/project_8com/capanalysis/include -Wall -fPIC -D_FILE_OFFSET_BITS=64 -I/home/pstengel/investigations/8com/project_8com/capanalysis/include -I/usr/include/postgresql -g -ggdb -O0 -DXPL_X86=1 -c -o pkginstall.o pkginstall.c
pkginstall.c:32:20: fatal error: pkgbin.h: No such file or directory
compilation terminated.
Makefile:234: recipe for target 'pkginstall.o' failed
make: *** [pkginstall.o] Error 1
"
What should I do?

Greets, Paul

the max files

capanalysis can analysis Maximum amount of data 13GB? when i upload the files more than 13GB, it can deal with 13GB,others can't be handled .what's the reason, is something wrong? thanks

Blank page after password set, Ubuntu desktop 18.04

Has anyone used CapAnalysis with Ubuntu desktop 18.04? It appears to install correctly, the new password page works fine, comes back with green check marks however when clicking on the green "go to Capanalysis UI" the screen comes back blank. When I look at the logs, /opt/capanalysis/log/2018_09_10.log, the message "error, user fail: Fatal: password authentication failed for user "capana" and Error: DB name fail: Fatal: database "capanalysis" does not exist.

This looks like a configuration or setup with a newer release, I checked Apache2, firewall is open, latest release of php-pgsql is installed.
Thanks, Randy

9/12/2018 Subsequently, I was able to log into the capanalysis database, could see tables and columns. It appeared the database setup ran fine.

An Internal Error Has Occured

Whe I start capanalysis, postgresql and apache2 I can log into main page but i've received a red banner with the string: Error: An Internal Error Has Occured.

The log is ok, they write db version is 1.1 and capanalysis start from version 1.2

How to capture traffic from remote host "on-the-fly"?

Hi,

I am trying to capture traffic from remote host "on-the-fly". Remote host is RaspberryPi and I am using tcpdump. For capturing into Wireshark, it would work like this:

ssh user@host "sudo tcpdump -i wlan0 -s 65535 -w - etr host 11:22:33:44:55:66" | wireshark -k -i -

Anyway, I am trying to do similar with CapAnalysis:

ssh user@host "sudo tcpdump -i wlan0 -s 65535 -w - etr host 11:22:33:44:55:66" | nc 127.0.0.1 30002

It is working, however, data appear only when I stop capturing. Is it possible to do analysis and view graphs while still capturing data?

Analyze PCAP offline

Is it possible to use CapAnalysis on a stand-alone host without Internet connectivity?
If yes, will CapAnalysis fail to generate some data (e.g., GeoIP?)

best regards,
V

Internal Error Problem

Hi,
I installed the package on Kali-rolling just fine. When I go to the start webpage and created the DB in postgresql and then want to go to the Capanalysis UI page I get an Internal Error page.

How can this be solved ?

Upload pcap from IP failure

I am attempting to upload a pcap from a URL and I get the message that the upload fails - is there anyway I can see any other error messages so I can debug this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.