View unanswered posts | View active topics It is currently Tue May 30, 2017 3:33 am



Post new topic Reply to topic  [ 3 posts ] 
 xplico upload files in kali2 64bit 
Author Message

Joined: Fri Dec 11, 2015 6:18 pm
Posts: 1
Reply with quote
Post xplico upload files in kali2 64bit
Hi!
A little story ... wing full of problems when uploading files. These seemingly go up, without error, but did not appear. So I've done the following script to fix the problem. Simply execute the following script and forth ...
Hope helps ;)

Execute script:
Code:
root@kali# bash exec-xplico-kali2.sh


Script exec-xplico-kali2.sh
Code:
root@kali# cat exec-xplico-kali2.sh
#!/bin/bash
#
# Install xplico in kali2 64bit for proper operation. Based on info URL: http://stephnet.us/geek/?p=93
# Copyright (C) 2015  @fcricardofc
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#

function install_packages(){
  cd /tmp && apt-get update && apt-get -y install xplico libsqlite3-dev libssl-dev postgresql-server-dev-all python3-setuptools
}

function install_phyton332(){
  wget https://www.python.org/ftp/python/3.3.2/Python-3.3.2.tgz
  tar xvfz Python-3.3.2.tgz && cd Python-3.3.2 && ./configure --with-ensurepip=install && make install
  wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py && python3 ez_setup.py
  easy_install-3.3 psycopg2
  easy_install-3.3 httplib2
  echo ':python3.3:M::\x9e\x0c\x0d\x0a::/usr/local/bin/python3.3:' > /proc/sys/fs/binfmt_misc/register
}

function max_apache2(){
  sed -i -e 's/max_execution_time = 30/max_execution_time = 300/g' -e 's/max_input_time = 60/max_input_time = 600/g' -e 's/post_max_size = 180M/post_max_size = 1800M/g' -e 's/upload_max_filesize = 180M/upload_max_filesize = 1800M/g' /etc/php5/apache2/php.ini
}

function up_servers(){
  nc -vz 80 > /dev/null 2>&1
  if [ $? -eq 0 ];then
    service apache2 start
  else
    service apache2 restart
  fi
  nc -vz 9876 >/dev/null 2>&1
  if [ $? -eq 0 ];then
    service xplico start
  else
    service xplico restart
  fi
}

function localhost_xplico(){
  iceweasel http://localhost:9876/users/login &
  #user/password: xplico/xplico
}

function main(){
  ping -c2 www.google.com > /dev/null 2>&1
  if [ $? -ne 0 ]; then
    echo 'Network is down. Re/Configure network.'
  else
    install_packages
    install_phyton332
    max_apache2
    up_servers
    localhost_xplico
  fi
}


main


Sat Dec 12, 2015 6:32 pm
Profile

Joined: Sun Feb 21, 2016 5:40 pm
Posts: 1
Reply with quote
Post Re: xplico upload files in kali2 64bit
Sorry if this subject is now closed, but I am having this issue - and I have tried to enter the code suggested - I saved it in root and executed it, but it came back with some errors:

urllib.error.URLError: <urlopen error unknown url type: https>
exec-xplico-kali2.sh: line 30: easy_install-3.3: command not found
exec-xplico-kali2.sh: line 31: easy_install-3.3: command not found
exec-xplico-kali2.sh: line 32: echo: write error: Invalid argument

The lines are:

wget https://bitbucket.org/pypa/setuptools/r ... z_setup.py && python3 ez_setup.py
easy_install-3.3 psycopg2
easy_install-3.3 httplib2
echo ':python3.3:M::\x9e\x0c\x0d\x0a::/usr/local/bin/python3.3:' > /proc/sys/fs/binfmt_misc/register

I did install psycopg2, and httplib2 manually, but the code still comes back with the same errors - clearly I am doing something wrong - which isn't surprising as I know very little about Linux, Kali and xplico.

Is anyone able to tell me what I am doing wrong.

I get the same issue as mentioned in the header of this post - I can start apache2, and start xplico, create a case, and create a session, I have a decoded pcap file in kali, but even though I can set it to be uploaded, and xploco says it is uploading, when it eventually finishes - there is nothing there.

Any help in very simple terms would be much appreciated.

Cheers


Sun Feb 28, 2016 5:20 pm
Profile

Joined: Thu May 05, 2016 9:41 pm
Posts: 2
Reply with quote
Post Re: xplico upload files in kali2 64bit
Yes it doesn't worked from me too !
Among the other logs messages :
[...]
--2016-05-18 03:55:50-- https://bitbucket.org/pypa/setuptools/r ... z_setup.py
Resolving bitbucket.org (bitbucket.org)... 104.192.143.3, 104.192.143.2, 104.192.143.1
Connecting to bitbucket.org (bitbucket.org)|104.192.143.3|:443... connected.
HTTP request sent, awaiting response... 404 NOT FOUND
2016-05-18 03:55:51 ERROR 404: NOT FOUND.

exec-xplico-kali2.sh: line 29: easy_install-3.3: command not found
exec-xplico-kali2.sh: line 30: easy_install-3.3: command not found

[...]

The locations seems change :
$ wget https://bootstrap.pypa.io/ez_setup.py
$ python3 ez_setup.py

But upload PCAP still make nothing appears...


Wed May 18, 2016 8:11 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.