<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agent on slash-root.fr</title><link>https://beta.slash-root.fr/tags/agent/</link><description>Recent content in Agent on slash-root.fr</description><generator>Hugo -- gohugo.io</generator><language>fr-fr</language><lastBuildDate>Thu, 18 Aug 2022 11:46:50 +0200</lastBuildDate><atom:link href="https://beta.slash-root.fr/tags/agent/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker-Compose : Portainer Agent</title><link>https://beta.slash-root.fr/docker-compose-portainer-agent/</link><pubDate>Mon, 15 Aug 2022 16:55:25 +0200</pubDate><guid>https://beta.slash-root.fr/docker-compose-portainer-agent/</guid><description>&lt;img src="https://beta.slash-root.fr/docker-compose-portainer-agent/cover.png" alt="Featured image of post Docker-Compose : Portainer Agent" /&gt;&lt;h2 id="docker-composeyml"&gt;&lt;a href="#docker-composeyml" class="header-anchor"&gt;&lt;/a&gt;docker-compose.yml
&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;version&lt;/span&gt;: &lt;span style="color:#e6db74"&gt;&amp;#39;3&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;services&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;agent&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;image&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;portainer/agent&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;container_name&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;portainer_agent&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;restart&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;unless-stopped&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;security_opt&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#66d9ef"&gt;no&lt;/span&gt;-&lt;span style="color:#ae81ff"&gt;new-privileges:true&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;volumes&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;/etc/localtime:/etc/localtime:ro&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;/var/run/docker.sock:/var/run/docker.sock:ro&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;/var/lib/docker/volumes:/var/lib/docker/volumes&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;ports&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;9001&lt;/span&gt;:&lt;span style="color:#ae81ff"&gt;9001&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Tactical RMM : Agent installation</title><link>https://beta.slash-root.fr/tactical-rmm-agent-installation/</link><pubDate>Thu, 21 Oct 2021 10:35:03 +0200</pubDate><guid>https://beta.slash-root.fr/tactical-rmm-agent-installation/</guid><description>&lt;img src="https://beta.slash-root.fr/tactical-rmm-agent-installation/cover.png" alt="Featured image of post Tactical RMM : Agent installation" /&gt;&lt;h2 id="a-lire"&gt;&lt;a href="#a-lire" class="header-anchor"&gt;&lt;/a&gt;A lire
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Pour l'instant seul un agent Windows est pleinement fonctionnel. Les versions Linux et macOS sont en cours de développement.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Afin d'éviter la détection de l'agent par l'antivirus, 2 solutions :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Agent avec code signé par Microsoft.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Un don mensuel de 50$ est demandé afin d'avoir accès à l'agent avec le code signé Microsoft. Le status Sponsor est alors attribué au sein du projet Tactical RMM.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Agent sans code signé par Microsoft.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Le setup généré dynamiquement de l'agent (explications plus bas) sans code signé peut provoquer une alerte virale sur votre système. L'utilisation de l'agent générique (via script, gpo) ne provoque pas d'alerte virale.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Penser à vérifier vos exclusions antivirus une fois l'agent Windows déployé:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Program Files\TacticalAgent\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Program Files\Mesh Agent\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Windows\Temp\winagent-v*.exe
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Windows\Temp\trmm\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\temp\tacticalrmm*.exe
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;Lors du déploiement de l'agent, les exclusions sont automatiquement créées dans Windows Defender.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Par défaut les mises à jour Windows sont désactivées automatiquement après l'installation de l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="déploiement-agent"&gt;&lt;a href="#d%c3%a9ploiement-agent" class="header-anchor"&gt;&lt;/a&gt;Déploiement agent
&lt;/h2&gt;&lt;blockquote&gt;
&lt;p&gt;L'exécution de l'installation des agents doit être effectué sur les hôtes à surveiller.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id="déploiement-manuel"&gt;&lt;a href="#d%c3%a9ploiement-manuel" class="header-anchor"&gt;&lt;/a&gt;Déploiement manuel
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Se rendre sur &lt;a href="https://rmm.example.com"&gt;https://rmm.example.com&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Clic droit sur le client/site puis &lt;strong&gt;Install Agent&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="install_agent.png" alt="install_agent" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Vérifier que le &lt;strong&gt;Client&lt;/strong&gt; et le &lt;strong&gt;Site&lt;/strong&gt; soient corrects.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir le type de machine (Server / Workstation) à qui s'adresse l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir le temps de validité de l'agent (Token expiration).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir les options appliqués par l'agent (Enable RDP, Enable Ping, Disable sleep/hibernate).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sélectionner la méthode d'installation souhaitée :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Agent généré dynamiquement&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="agent_dynamic.png" alt="agent_dynamic" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Attention à l'antivirus si le code de l'agent est non signé par Microsoft. Voir la section &lt;em&gt;A lire&lt;/em&gt; au début de cet article.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Powershell&lt;/strong&gt; : Génération d'un script Powershell. L'agent est générique et le scripts contient tous les paramètres de l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Autoriser l'exécution du script Powershell :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;PS C:\&amp;gt; Set-ExecutionPolicy Unrestricted
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Manuel&lt;/strong&gt; : L'agent est générique. Le script d'exécution est afficher à l'écran. Cette méthode est préconisée pour l'intégration dans des scripts et/ou des GPOs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="agent_manual.png" alt="agent_manual" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Attention à la durée du token si cette méthode est choisie pour une utilisation dans des scripts et/ou GPOs. Mettre une valeur très importante si besoin d'une validité &lt;em&gt;permanente&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="lien-de-déploiement"&gt;&lt;a href="#lien-de-d%c3%a9ploiement" class="header-anchor"&gt;&lt;/a&gt;Lien de déploiement
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A partir du client, se rendre sur &lt;a href="https://rmm.example.com"&gt;https://rmm.example.com&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Menu &lt;strong&gt;Agents&lt;/strong&gt; puis &lt;strong&gt;Manage Deployments&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="link_deploy.png" alt="link_deploy" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Astuce : Créer un client/site default avec un lien de déploiement (token avec une longue expiration) pour avoir une URL générique. Puis déplacer l'agent dans le client / site souhaité.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;L'agent téléchargé à travers ce lien est de type dynamique. Il est potentiellement détectable par les antivirus (si code non signé). Se référer à la section &lt;em&gt;A lire&lt;/em&gt; en début de cet article.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="starwars_link_agent.png" alt="starwars_link" /&gt;&lt;/p&gt;
&lt;h3 id="déploiement-par-gpo"&gt;&lt;a href="#d%c3%a9ploiement-par-gpo" class="header-anchor"&gt;&lt;/a&gt;Déploiement par GPO
&lt;/h3&gt;&lt;blockquote&gt;
&lt;p&gt;La GPO de déploiement de l'agent doit être appliquée au niveau ordinateur afin que l'installation de l'agent se déroule sous un compte &lt;strong&gt;Local System&lt;/strong&gt; ayant les droits nécessaires.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Récupérer le script d'installation de l'installation manuelle (voir plus haut) ainsi que l'exécutable de l'agent générique.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stocker le script et l'agent.exe dans un dossier partager du contrôleur de domaine (exemple: &lt;code&gt;C:\agent_rmm\&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sur le domaine Windows, ouvrir la console MMC des GPOs :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpmc.msc
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Créer une nouvelle GPO ciblant une OU contenant des Ordinateurs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_oucpu.png" alt="gpo_oucpu" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Editer cette GPO. Trois étapes sont nécessaire pour que celle-ci fonctionne parfaitement.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;La création d'un dossier sur le poste client.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_dir.png" alt="gpo_dir" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;La copie du script et de l'agent.exe sur le poste client.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_fic.png" alt="gpo_fic" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;L'exécution d'un script au démarrage du poste client :&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd c:\agent_rmm
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;agent_rmm.bat
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_start.png" alt="gpo_start" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Patienter ou forcer l'application de la nouvelle GPO :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpupdate /force
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Un modèle de GPO importable dans un domaine est disponible : &lt;a href="GPO-Deploiement_agent_TacticalRMM.zip" title="GPO-Deploiement_agent_TacticalRMM"&gt;ICI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="arguments-optionnels"&gt;&lt;a href="#arguments-optionnels" class="header-anchor"&gt;&lt;/a&gt;Arguments optionnels
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Quelques arguments qui peuvent être utilisés dans des scripts :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-log debug&lt;/code&gt; : Affiche un log verbeux lors de l'installation de l'agent&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-silent&lt;/code&gt; : Aucun message durant l'installation de l'agent&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-proxy &amp;quot;http://proxyserver:port&amp;quot;&lt;/code&gt; : Pour utiliser un proxy&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-meshdir &amp;quot;C:\Mesh Agent&amp;quot;&lt;/code&gt; : Spécifier le chemin contenant meshagent.exe&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-nomesh&lt;/code&gt; : N'installe pas l'agent meshcentral. Pas de take control, remote terminal, file browser&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>