Can we invoke an exe of client machine through ChatBot application which is hosted on azure and channel to access the chatbot is MS Teams - chatbot

I am working on a chatbot application developed in .net core 3.1, this application is hosted on azure, and all users of the company can interact with this chatbot through MS Teams app, on both platforms through mobile and desktop. So I want to do some automation on user machine, for this, I want to invoke cmd and some exes of client user machine, but I have no idea how to achieve this directly through my chatbot application. I don't want to inkove exe through the client machine browser with some registry changes on user's machine.

This would be a massive security risk, so no, there's no way to do this without installing or implementing things on the user's machine.
Some options are:
Write a custom chat client using directline-js, that executes those commands when it receives data from the bot.
Register a custom URI Protocol handler and have the bot send a URL link in teams. When the user clicks it, the handler grabs it and sends it to the program registered with the handler to execute the appropriate action.
There's probably some other ways to do this but again, it's not possible without the client installing something or making some registry edits.

Related

Single sign on with Microsoft Azure in Flutter with oAuth2

I have been trying to create a Flutter app that uses SSO with my freshly made Microsoft Azure account. I have decided on oauth2 dependency, but I'm not sure what to put in redirect() and listen() methods.
Also, does my Azure App need to be web or mobile based? Any special tweaks?
Do I need a local web server running since it's accessing localhost?

RocketChat: copy messages on private channel as they are pinned (or starred)

I've to write a daemon (or script) running inside my RocketChat server that automatically clone messages from any direct chat to a private channel as soon as they went pinned or starred by the user (I don't want to integrate any additional button or option on phone apps neither on the web app).
I am a newbie in rocketchat and I've read a lot of info (eg. how mongodb works etc.), but I cannot understand if a bot is the right choice for this task.
I've installed the chat application on a Ubuntu Server via snap.

How to access local mysql from chrome packages app

I am developing a chrome packaged app. There is already an VB application running with mysql. I want to access the same database but use chrome packaged app as client.
How to access local mysql server from chrome packages app using javascript ?
I am aware of IndexedDB.
You have two options:
Create a web service (e.g. some PHP pages) that talks to MySQL and allows your app to use it as a go-between
Write your own MySQL driver/communicator to communicate with it directly: http://developer.chrome.com/apps/socket.html
The first is the easiest and would take the form:
Your chrome app would use AJAX to communicate with the PHP pages (probably via "POST")
Your PHP pages would expect it to login, use SSL and then use a token to continue identification during a session
The PHP would have generic capabilities to do CRUD actions
The PHP would spit back JSON for the results
but the second option would make you a hero if you took the time to develop that and put it on sourceforge or github under a permissive open source license.

Deliver application's GUI via browser

I need to show to a user an interface of some application running on a server using a browser. It should be like RDP-client for a single application on a server.
Are there any solutions or services that can implement following functionality? Maybe Citrix?
Thanks in advance!
This looks like what you're looking for:
http://freerdp.net/
About FreeRDP-WebConnect
FreeRDP-WebConnect is an open source gateway for accessing RDP
sessions using any HTML5 compliant browser. In particular it relies on
the Canvas and the WebSockets feature. FreeRDP-WebConnect is a
subproject of the FreeRDP project.
On the server side, a standalone daemon - written in C++ - provides a
Web page via HTTPS (or HTTP, if configured) and uses FreeRDP libs to
connect as a client to any RDP session. The server side WebSockets
implementation handles current RFC6455 only, so browsers that
implement the older drafts do not work. With RFC6455 being raised to
the "Proposed Standard" level, this should change now really soon.
I would create an account on the server for the user, and only give it access to the one application it needs access to.
You can use Cameyo. To start, create yourself a free account, and click on "Add App". If your installer supports unattended installation, you simply need to submit it. Otherwise, you can build a Cameyo package locally and send it in. It will then be playable as HTML5.
You don't indicate what server you are running on.
As an alternative to FreeRDP-Webconnect cited above, also open source and also using FreeRDP as rdp client through an HTTP gateway, there is Myrtille.
FreeRDP-WebConnect embeds a standalone daemon written in C++ to provide a web page via HTTP(S), and so will also work on Linux servers, while Myrtille have a IIS/.NET (C#) implementation and an MSI installer, thus is more intended for Windows Servers.

How can I remotely deploy a rich client in .Net?

Currently we run our web applications on a thin client browser IE 6 and it is slow.
We are a non-profit organization. All our offices are linked via VPN.
Opera 10 browser allows one to convert one's PC into a server.
I am thinking of deploying our application and Opera 10 on every client, meaning that the every client would run a server which in turn would run our application.
Therefore, the clients would connect only to our database. This would speed things up.
However, I would need to deploy updates to our application from time to time.
How can I deploy a web application to the clients PC's remotely?
Our app is .Net.
You might want to take a look at click-once deployment which can handle auto-updating applications (I believe however, they should be .Net based)