crescentvenus / WALB

WALB is raspberry Pi and HackRF based Wireless Attack LaunchBox.
119 stars 29 forks source link

Running on Linux #13

Open PlutoIsBlack opened 5 years ago

PlutoIsBlack commented 5 years ago

I am trying to run this on linux without a Pi can you please help me with how to compile this I am really new to Linux and think I am making some mistake.

crescentvenus commented 5 years ago

I think you should try original gps-sdr-sim, if you haven't tried yet. https://github.com/osqzss/gps-sdr-sim

PlutoIsBlack commented 5 years ago

I have tried it and works fine. I don't understand how you turn on the webui for extracting the lat. longs

crescentvenus commented 5 years ago

Original gps-sdr-sim has -l option which reads static Lat/Lon from command line. I modified the code to read Lat/Lon from a file when you specify a file name instead of static Lat/Lon.

PlutoIsBlack commented 5 years ago

I understand the concept but am unable to open the web ui

PlutoIsBlack commented 5 years ago

can you tell me how to open the web ui

crescentvenus commented 5 years ago

You need to have WWW server such as apache2 on the same PC running modified gps-sdr-sim and hackrf-transfer. And follow https://github.com/crescentvenus/WALB/tree/master/webui

PlutoIsBlack commented 5 years ago

ok thanks i will try and let you know

PlutoIsBlack commented 5 years ago

I configured everything like it said in the link but which file do I run to start the webui

crescentvenus commented 5 years ago

Just access the WWW server you set up using browser chrome. http://ip-youre-WWW-server/LatLon.php

PlutoIsBlack commented 5 years ago

I access it but the ui doesn't open instead it just shows text Screenshot from 2019-07-19 20-25-34

PlutoIsBlack commented 5 years ago

if it isn't too much trouble could you please list the steps I should follow to get it working I added the API and updated the directories but still nothing

crescentvenus commented 5 years ago

Have you installed php ?

2019年7月20日(土) 0:29 PlutoIsBlack notifications@github.com:

if it isn't too much trouble could you please list the steps I should follow to get it working I added the API and updated the directories but still nothing

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/crescentvenus/WALB/issues/13?email_source=notifications&email_token=AEUP7DHEAGWNPM7NP7FOCPTQAHMWJA5CNFSM4IFFLNA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2L63XA#issuecomment-513273308, or mute the thread https://github.com/notifications/unsubscribe-auth/AEUP7DB5RQN3JZADH7MNLYDQAHMWJANCNFSM4IFFLNAQ .

PlutoIsBlack commented 5 years ago

I got the map to work and ran the simulation but now for some reason it does not use the interactive mode just shows static mode and transmits some weird location

PlutoIsBlack commented 5 years ago

The latlon.txt is not being generated

crescentvenus commented 5 years ago

Well, it may file's permission issue. Can you send me directory list of WWW server. ls -l

PlutoIsBlack commented 5 years ago

really sorry but I don't know how to do it

crescentvenus commented 5 years ago

'ls -l' is one of the basic Linux command. On terminal , type something like "ls -l /var/www/html" .

PlutoIsBlack commented 5 years ago

Here is the list

Screenshot from 2019-07-20 03-54-18

crescentvenus commented 5 years ago

You have to get administrator authority, '$ sudo -s' Then, '# chown www-data:www-data /var/www/html/webui/*'

PlutoIsBlack commented 5 years ago

still nothing, I can't find any place where LatLong.txt is being created

crescentvenus commented 5 years ago

Check content of LatLon.ini.php.

PlutoIsBlack commented 5 years ago

LatLon.ini.php says that the file is in \tmp but there was no file there

PlutoIsBlack commented 5 years ago

Till now I have setup the server and map is working fine but the lat longs are not being saved

crescentvenus commented 5 years ago

When you click somewhere in the map, the center of the map changes accordingly ?

PlutoIsBlack commented 5 years ago

yes the center moves and marker is placed

crescentvenus commented 5 years ago

How about /var/www/html/webui/LatLon.txt ? It should contain Lat/Lon where you clicked and update every time you clicked.

PlutoIsBlack commented 5 years ago

there is no LatLon.txt file

crescentvenus commented 5 years ago

You can check WWW server log in /var/log/apache2/error.log Is there any error message in that file ?

PlutoIsBlack commented 5 years ago

There are a few error messages

Screenshot from 2019-07-20 06-38-44

crescentvenus commented 5 years ago

As far as I can tell from error.log, you installed related files in /var/www/html/ but not /var/www/html/webui/. Is that correct ? The 4th line of error.log tells it failed because lack of permission.

PlutoIsBlack commented 5 years ago

How do I give more permission and also now the map has stopped loading

crescentvenus commented 5 years ago

Tell me first, where is the installed directory ?

PlutoIsBlack commented 5 years ago

/var/www/html/webui/

crescentvenus commented 5 years ago

It is odd. error.log is pointing /var/www/html/LatLon.txt.

PlutoIsBlack commented 5 years ago

how was I suppose to install directory?

crescentvenus commented 5 years ago

Install directory does not matter. It must be just consistent through installation and operation. Can you show the result of "ls -l /var/www/html "

PlutoIsBlack commented 5 years ago

also now map is not initializing properly

Screenshot from 2019-07-20 07-07-51

PlutoIsBlack commented 5 years ago

Screenshot from 2019-07-20 07-11-48

crescentvenus commented 5 years ago

Well, I suggest you find nearby friend who can figure out the meaning of error.log. The error.log is telling couple of other errors too . Anyway, thank you for your interest of WALB project.

PlutoIsBlack commented 5 years ago

Thanks for all the help

PlutoIsBlack commented 5 years ago

one last thing can you show me a picture of LatLon.txt I would like to see how the data is presented in the file

crescentvenus commented 5 years ago

I will post again if something I came up with.

crescentvenus commented 5 years ago

LatLon.txx is one line simple TEXT file something like below. 45.79737,130.44659,100

PlutoIsBlack commented 5 years ago

LatLon.txt is updating successfully now Thank You so much

PlutoIsBlack commented 5 years ago

now which gps-sim-sdr should I run gps-sdr-sim or gps-sdr-sim_x64

crescentvenus commented 5 years ago

gps-sim-sdr is for raspberry Pi, gps-sdr-sim_x64 is for intel x64 processor.

PlutoIsBlack commented 5 years ago

In the video when you run it gps-sdr-sim it says interactive mode but when I do it, it says static mode

PlutoIsBlack commented 5 years ago

and also how do you start compiling and transmission simultaneously

crescentvenus commented 5 years ago

Naming has history. Is been more than 3 years from initial post. I added interactive function on static location mode of original gps-sdr-sim. I don't understand your question "how do you start compiling and transmission simultaneously" .

PlutoIsBlack commented 5 years ago

or are you transmitting it through GNURadio?