<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>dwt&#039;s life - linux</title>
<link>https://dwt.life/tag/linux/</link>
<atom:link href="https://dwt.life/feed/tag/linux/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Tue, 06 Dec 2022 13:31:14 +0800</lastBuildDate>
<pubDate>Tue, 06 Dec 2022 13:31:14 +0800</pubDate>
<item>
<title>wireguard基本安装和配置（by GPT3 达芬奇）</title>
<link>https://dwt.life/archives/318/</link>
<guid>https://dwt.life/archives/318/</guid>
<pubDate>Tue, 06 Dec 2022 13:31:14 +0800</pubDate>
<dc:creator>Ricky</dc:creator>
<description><![CDATA[安装wireguard：sudo apt-get install wireguard创建配置文件：sudo nano /etc/wireguard/wg0.conf编辑配置文件：[Interfa...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<ol><li>安装wireguard：</li></ol><pre><code>sudo apt-get install wireguard</code></pre><ol start="2"><li>创建配置文件：</li></ol><pre><code>sudo nano /etc/wireguard/wg0.conf</code></pre><ol start="3"><li>编辑配置文件：</li></ol><pre><code>[Interface]
Address = 10.0.0.1/24
ListenPort = 51820
PrivateKey = &lt;Your Private Key&gt;

[Peer]
PublicKey = &lt;Peer&#039;s Public Key&gt;
AllowedIPs = 10.0.0.2/32
Endpoint = &lt;Peer&#039;s IP Address&gt;:51820</code></pre><ol start="4"><li>启动wireguard：</li></ol><pre><code>sudo wg-quick up wg0</code></pre><ol start="5"><li>检查wireguard状态：</li></ol><pre><code>sudo wg show</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://dwt.life/archives/318/#comments</comments>
<wfw:commentRss>https://dwt.life/feed/tag/linux/</wfw:commentRss>
</item>
<item>
<title>linux4.17后重写sys_call_table函数参数无法获得的解决方法</title>
<link>https://dwt.life/archives/23/</link>
<guid>https://dwt.life/archives/23/</guid>
<pubDate>Sat, 03 Jul 2021 17:25:00 +0800</pubDate>
<dc:creator>Ricky</dc:creator>
<description><![CDATA[从社区中得到了一个解决方案：System call hooking example arguments are incorrect然后搜索这个得到了这篇文章其中，参数以const struct ...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>从社区中得到了一个解决方案：<a href="https://stackoverflow.com/questions/59851520/system-call-hooking-example-arguments-are-incorrect">System call hooking example arguments are incorrect</a></p><p>然后搜索这个得到了<a href="https://blog.csdn.net/weixin_42915431/article/details/105622584">这篇文章</a></p><p>其中，参数以const struct pt_regs *regs的形式存储，<br>第一个参数dfd在regs-&gt;di中<br>第二个参数filename在regs-&gt;si中<br>第三个参数flags在regs-&gt;dx中<br>第四个参数mode在regs-&gt;r10中<br>获取之后再对其进行类型转换即可。</p><p>主要是kernel4.17后对参数的获取做了修改，但是即使定义的函数没有hook上也不会影响正常使用的意思。</p><p>花了两天时间自己没解决，求助社区半天不到就解决了。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://dwt.life/archives/23/#comments</comments>
<wfw:commentRss>https://dwt.life/feed/tag/linux/</wfw:commentRss>
</item>
</channel>
</rss>