hashcat

hashcat crack sha256 with rockyou.txt

cat sha256_hash_rockyou.txt 
F09EDCB1FCEFC6DFB23DC3505A882655FF77375ED8AA2D1C13F640FCCC2D0C85
hashcat -m 1400 -a 0 sha256_hash_rockyou.txt ~/rockyou/rockyou.txt
hashcat -m 1400 --show sha256_hash_rockyou.txt
f09edcb1fcefc6dfb23dc3505a882655ff77375ed8aa2d1c13f640fccc2d0c85:paule

hashcat crack brcypt with rockyou.txt

cat hash.txt               
$2y$12$Dwt1BZj6pcyc3Dy1FWZ5ieeUznr71EeNkJkUlypTsgbX1H68wsRom

cat rockyou.txt | grep -E '^[a-z]{4}$' > rockyou-4chars.txt
hashcat -m 3200 

如何把SAP AI Core 接入Cursor

SAP AI Core 接入Cursor

估计这是全网第一篇把SAP AI Core 接入Cursor 的教程。

教程很简单,按照下面项目README,跑一个本地AI Core LLM 代理服务器

http://127.0.0.1:5000

接着找一台有公网IP的电脑,注册绑定好域名,在Nginx设置好反向代理

比如 https://ai-proxy

然后在Cursor 设置自定义Open AI URL

https://ai-proxy/v1

这个代理服务器是手工搓的,目前支持gpt-4,gpt-4o, Claude 3.5 sonnet 统一了OpenAI API协议,所以可以用到任何兼容OpenAI API 的客户端。

至此,Token自由。

SAP AI Core LLM Proxy 介绍

sap-ai-core-llm-proxy is …

OpenWRT + OpenClash

iptables

opkg update
opkg install coreutils-nohup bash iptables dnsmasq-full curl ca-certificates ipset ip-full iptables-mod-tproxy iptables-mod-extra libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base

nftables

opkg update
opkg install coreutils-nohup bash dnsmasq-full curl ca-certificates ipset ip-full libcap libcap-bin ruby …

群晖双网口OpenWRT软路由设置

家里的黑群之前用OpenWRT做软路由的时候买过一个网卡,最近把黑群升级到了最新版本,软路由虽然一直没用,但还是把它设置起来以备不时之需。

所以现在有两个网卡

  1. LAN 1(Default)
  2. LAN 2(新加的)

在Virtual Machine Manger里增加两个网卡

  1. eth0 -LAN 2(新加的)
  2. eth1 -LAN 1(Default)

在Virtual Machine-OpenWrt这个虚拟机上加入上面新增的两个网卡,这样就等于在 OpenWrt里插入了两个网卡eth0, eth1

接下来在OpenWRT里面分别设置eth0(LAN2,新加的)作为局域网, eth1(LAN1,Default)作为外网连接,设置网关为家里路由器的ip, 内部局域网段为192.168.2.xxx

  1. eth0-lan(内网)
  2. eth1-wan(外网)
cat /etc/config/network
/etc/init.d/network restart

Cloudflare转发公网IP非443端口

上海电信公网IP开通后,一些常用的端口如80和443不能使用。因此,必须使用其他端口,例如将443端口改为8443端口。访问时还需要在URL中加入特定的端口号:https://host:8443。

昨天搜了一下,原来Cloudflare支持转发非443端口,你需要做的就两步

  1. DNS enable proxy
  2. Rules-Origin Rules-Custom Filter Expression, 在这里添加一些转换规则-Then rewrite to “8443”

这样就设置好了,通过访问https://host, Cloudflare就会自动转到了源地址https://host:8443