Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map point from Source IP to Dest IP #29

Open
DSriramm opened this issue Aug 22, 2019 · 4 comments
Open

Map point from Source IP to Dest IP #29

DSriramm opened this issue Aug 22, 2019 · 4 comments

Comments

@DSriramm
Copy link

Hi,

This project is really amazing. However, I'm trying to point attack source ip to destination ip on map instead of limiting to headquarters (based on info from syslog). So it would be a great help if you can point me on how to get this done..

Thanks!!

@jtsamas
Copy link

jtsamas commented Aug 30, 2019

Hi @DSriramm

Navigate to the /static folder and map.js

cd /geoip-attack-map/AttackMapServer/static/

then

sudo nano map.js

GNU nano 2.5.3 File: map.js

// To access by a browser in another computer, use the external IP of machine running AttackMapServer
// from the same computer(only), you can use the internal IP.
// Example:
// - AttackMapServer machine:
// - Internal IP: 127.0.0.1
// - External IP: 192.168.11.106
var webSock = new WebSocket("ws:/192.168.11.106:8888/websocket"); // Internal

// link map

L.mapbox.accessToken = "YOUR API KEY";
var map = L.mapbox.map("map", "mapbox.dark", {
center: [0, 0], // lat, long
zoom: 3});

// add full screen option
L.control.fullscreen().addTo(map);

// hq coords

var hqLatLng = new L.LatLng(37.3845, -122.0881);

CHANGE THE L.LatLng(37.3845, -122.0881) TO your desired coordinates

Hope that helps

@DSriramm
Copy link
Author

Hi @jtsamas

Thanks for your reply. I knew about HQ coordinates. But my requirement here is.. the desired coordinates are dynamic and has to obtained from source IP from syslog by dataserver.

In Another words, I’m trying to build a attack map which shows map pointing from source to destination.

Thanks in advance!!

@jtsamas
Copy link

jtsamas commented Aug 30, 2019

Hello @DSriramm my bad. Let me modify my code and see if the result meets your request. Will revert

@DSriramm
Copy link
Author

@jtsamas Many thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants