Active1 month ago
![Text spammer website Text spammer website](/uploads/1/2/6/0/126070615/589407169.jpg)
This feature is not available right now. Please try again later. Bulk Text SMS Messaging Software for Mac & PC By mmadv2 www.textmagic.com SMS software – Send Bulk Text Messages from PC or Mac TextMagic Messenger is an easy-to-use and robust bulk text messaging software application for PC and Mac. Quickly change any message's background color in Mac OS X Mail to highlight, organize, and dash; or reset the color set by a rule. Quickly change any message's background color in Mac OS X Mail to highlight, organize, and dash; or reset the color set by a rule. You Can Change the Text Background Color in OS X Mail. How to Add a Reply-to. Text spammer free download - Hotkey Spammer, SMS Spammer, Cat Spammer, and many more programs. Best Video Software for the Mac How To Run MacOS High Sierra or Another OS on Your Mac Best. Text message spam is a big problem, but unfortunately, there is no Gmail-like spam filter for them in most SMS apps. Well, Truemessenger is here to change that.
I need to know the MAC and the IP address of the connect clients, how can I do this in PHP?
hakre164k3333 gold badges323323 silver badges637637 bronze badges
NeveenNeveen92533 gold badges1313 silver badges2222 bronze badges
Text Spammer Bot
12 Answers
Server IP
You can get the server IP address from
$_SERVER['SERVER_ADDR']
. Server MAC address
For the MAC address, you could parse the output of
netstat -ie
in Linux, or ipconfig /all
in Windows.Client IP address
You can get the client IP from
$_SERVER['REMOTE_ADDR']
Client MAC address
The client MAC address will not be available to you except in one special circumstance: if the client is on the same ethernet segment as the server.
So, if you are building some kind of LAN based system and your clients are on the same ethernet segment, then you could get the MAC address by parsing the output of
arp -n
(linux) or arp -a
(windows). Edit: you ask in comments how to get the output of an external command - one way is to use backticks, e.g.
But what if the client isn't on a LAN?
Well, you're out of luck unless you can have the client volunteer that information and transmit via other means.
Paul DixonPaul Dixon253k4242 gold badges288288 silver badges324324 bronze badges
The MAC address of a client (in the sense of the computer that issued the HTTP request) is overwritten by every router between the client and the server.
Client IP is conveniently provided to the script in
$_SERVER['REMOTE_ADDR']
. In some scenarios, particularly if your web server is behind a proxy (i.e. a caching proxy) $_SERVER['REMOTE ADDR']
will return the IP of the proxy, and there will be an extra value, often $_SERVER['HTTP_X_FORWARDED_FOR']
, that contains the IP of the original request client. Sometimes, particularly when you're dealing with an anonymizing proxy that you don't control, the proxy won't return the real IP address, and all you can hope for is the IP address of the proxy.
Michał TatarynowiczMichał Tatarynowicz74922 gold badges99 silver badges3131 bronze badges
I don't think you can get MAC address in PHP, but you can get IP from
RaYellRaYell$_SERVER['REMOTE_ADDR']
variable.45.9k2020 gold badges114114 silver badges146146 bronze badges
All you need to do is to put arp into diferrent group.
Default:
With command:
you will get:
And because apache is a daemon running under the user www-data, it's now able to execute this command.
So if you now use a PHP script, e.g.:
you will get the output of linux
Cosmin Pirvuarp -an
command.19.7k55 gold badges3535 silver badges5656 bronze badges
McJMcJ
SimosSimos
This is a PHP class for MAC address manipulation on top of Unix, Linux and Mac OS X operating systems. it was primarily written to help with spoofing for wireless security audits.
AliAli3,79822 gold badges1717 silver badges3636 bronze badges
In windows, If the user is using your script locally, it will be very simple :
MirtovMirtov
Cell Phone Text Spammer
You can get MAC Address or Physical Address using this code
I used explode many time because shell_exec ('ipconfig/all') return complete detail of all network. so you have to split one by one. when you run this code then you will get
your MAC Address00-##-##-CV-12 //this is fake address for show only.
your MAC Address00-##-##-CV-12 //this is fake address for show only.
Pankaj KumarPankaj Kumar
You can use the following solution to solve your problem:
Grant Miller8,6521313 gold badges4747 silver badges7474 bronze badges
AbdulRahman AlShamiriAbdulRahman AlShamiri
This works for me on Windows, as
Kevin Guanipconfig /all
is Windows system command.14.7k1010 gold badges4444 silver badges7171 bronze badges
AshwinAshwin31911 gold badge55 silver badges1515 bronze badges
under linux using iptables you can log to a file each request to web server with mac address and ip.from php lookup last item with ip address and get mac address.
As stated remember that the mac address is from last router on the trace.
TexWillerTexWiller
You can do this easily using openWRT. If yo use a captive portal you can mix php and openWRT and make a relation between the IP and the mac.
You can write a simple PHP code using:
Later, using openWRT you can go to
/tmp/dhcp.leases
, you will get something with the form:There, you have the mac, the IP address and the hostname.
Bernat Pedrol VozmedianoBernat Pedrol Vozmediano
protected by Community♦Jan 11 '12 at 9:16
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?