WiFi Signal for Hotspot in Login Page

Hi all

I need help in Hotspot Script , How can I add the status of wirelss client , I want to Get the SNMP or /interface wireless regsitartion-table , and get the signal of user accourding his MAC-Address and put it in the hotspot status page . also the Tx/Rx of user .

Thanx for help

I need it as well… anyone with any idea?

It’s an interesting idea - I’ll attempt to get it working and post result if I do

From command line this will return the signal for a given MAC:

:put [/interface wireless registration-table get [find mac-address=00:85:49:8E:27:C7] signal-strength]

MAC can be entered without the colons too

Now to populate the hotspot status page with the data…

I have an idea… use SSH via PHP to retrieve it then
put one iframe inside hotspot page linked to that php code.

how’s that? anyone that can do this?

I am sure there must be an easier way, as most hotspot data is returned by direct function calls to the router (it would seem).

Any ideas on this Eugene?

I am not aware of a way that would be easier then one described by Hellbound.

Eugene

We are talk about HOTSPOT user not Mikrotik (( admin or )) any user , I didn’t want to great a script that may be some hackers use it to login inside Mikrotik Box ?

any Idea ,

and some users use (( Wireless Client Routers )) like D-Link or UsRobotik and the Hotspot see the LAN MAC-Address of them PCs not the MAC-Address of wireless LAN of the Router .

Need Help , and I think we need help from mikrotik and it must added to mikrotik hotspot to be more compatable .


Regard

initially that was what I though you meant… people won’t have a backdoor to enter your router or server…

php code will render and only text will be sent to users (or images)

Yes the PHP and HTML can not be hacked , and I think if we use the SNMP oid , to get the signal strengh but i have problem how can I know the MAC-addrees or the Number for assined Item with Print oid command




[admin@MikroTik] interface wireless registration-table> print oid

0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.1.36.112.75.166.3
tx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.4.0.1.36.112.75.166.3
rx-bytes=.1.3.6.1.4.1.14988.1.1.1.2.1.5.0.1.36.112.75.166.3
tx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.6.0.1.36.112.75.166.3
rx-packets=.1.3.6.1.4.1.14988.1.1.1.2.1.7.0.1.36.112.75.166.3
tx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.8.0.1.36.112.75.166.3
rx-rate=.1.3.6.1.4.1.14988.1.1.1.2.1.9.0.1.36.112.75.166.3

can you explain how?

I’m not want to learn in this how to hack the PHP and SQL and CGI script , there is many Seecurity Holes,

for fun like phpBB forum , …!!!



regard

dude,
IMHO you basically didn’t get the idea correctly. the logic is to only send user a text value for his signal…

if you do think PHP is not a secure platform then you should close your browser right now!! or even for your information the Mikrotik Hotspot is using cgi-like input… you must not USE it!!!

but it is also proven that no security system made by human is garanteed to be secured from another human.

leave or like it there is no solution from Mikrotik except what I told you…

No I’m not want to Disscuse the Security options for the Languages , I wana to told you we cant get admin option to user to get the value of his signal ,

all user (( hackers )) or not , have spectrum program that can get the value of admin level , every week I’m close may ports in my network .

Finaly , I love Mikrotik OS and I’m use it for 2 year , forget what I’m talk about security and let us get some think for people in hotspot.

Please believe me when I say you didn’t not fully understand what I said.
Your box’s password is not reveal to anyone at all. it is part of your code that is runned in a WebServer separately… the webserver log into your box , read the value and send the value to your user.

it is not JAVAScript that is runned at client. it is a server code that is runned at Server

However I would be still interested no matter if you think it is not secured if anyone can do this for us?

thanks

I’m understand you we can do it like MRTG software and generate PNG images , Right ?

exactly…

any new Idea ? to start work .

The MAC address of the associated client is part of its corresponding registration-table OID. Let’s look at an actual example:

[admin@AP] interface wireless registration-table> print

INT… RADIO-NAME MAC-ADDRESS AP SIGNAL… TX-RATE UPTIME

0 wlan1 000C420C12B0 00:0C:42:0C:12:B0 no -52dBm… 6Mbps 1d21h14m2s
1 wlan2 000C420C12A8 00:0C:42:0C:12:A8 no -54dBm… 6Mbps 1d21h13m58s

[admin@AP] interface wireless registration-table> print oid
0 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.12.66.12.18.176.4
[…]
1 strength=.1.3.6.1.4.1.14988.1.1.1.2.1.3.0.12.66.12.18.168.5

The orange parts go together, just translate the hexadecimal bytes from the MAC address into decimal, so for the above example 0x00=0, 0x0C=12, 0x42=66, 0x0C=12, 0x12=18, 0xB0=176.

The final value, following the six bytes from the MAC address in the OID (marked green above) is the SNMP interface index of the interface that the client is associated to (so walk the ifTable to find the index if you only know the interface name).

So if you know the clients MAC address and the SNMP index of the AP interface where the client is supposed to be connected to then it is very easy to calculate the OID for the SNMP GET. The cyan part is static anyway.


–Tom

Just I know how get the MAC for user

in HTML variable name is $mac and it was string need to convert .

and more idea

if any one has OCX file on SNMP , I’m try to search VB and Java script but all them not free.

Regard and Still work