ss-feedback

This commit is contained in:
shenmo 2023-03-03 22:11:48 +08:00
parent 58ea0249d8
commit 77eb0d84c7
5 changed files with 260 additions and 511 deletions

@ -14,7 +14,7 @@ chmod -R 755 /tmp/aptss-conf
fi
if [ ! -e "/var/lib/apt/lists/d.spark-app.store_store_Packages" ] && [ ! -e "/var/lib/apt/lists/d.store.deepinos.org.cn_store_Packages" ] && [ ! -e "/var/lib/apt/lists/mirrors.sdu.edu.cn_spark-store-repository_store_Packages" ];then
if [ ! -e "/var/lib/apt/lists/d.spark-app.store_aarch64-store_Packages" ] && [ ! -e "/var/lib/apt/lists/d.store.deepinos.org.cn_aarch64-store_Packages" ] && [ ! -e "/var/lib/apt/lists/mirrors.sdu.edu.cn_spark-store-repository_aarch64-store_Packages" ];then
echo "接收星火仓库软件信息中..."
mkdir -p /tmp/aptss-conf/
@ -24,7 +24,7 @@ echo
curl --silent -o /tmp/aptss-conf/apt-fast.conf "https://d.store.deepinos.org.cn/apt-fast.conf"
chmod -R 755 /tmp/aptss-conf
sudo curl --silent -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://d.store.deepinos.org.cn/sparkstore.list"
sudo curl --silent -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://d.store.deepinos.org.cn/sparkstore-aarch64.list"
sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
#只更新星火源

@ -1,2 +1,4 @@
# Feadback 反馈脚本
使用 shc 加密, 需要使用 cc、gcc 编译。
此处既支持amd64也支持aarch64参见mailget仓库loongarch的时候再修改

@ -1,303 +1,266 @@
#if 0
shc Version 4.0.3, Generic Shell Script Compiler
shc Version 3.9.6, Generic Shell Script Compiler
GNU GPL Version 3 Md Jahidul Hamid <jahidulhamid@yahoo.com>
shc -v -r -f sender-d.sh
shc -f sender-d.sh
#endif
static char data [] =
#define pswd_z 256
#define pswd ((&data[15]))
"\073\237\114\151\003\324\064\061\057\100\342\310\062\343\346\075"
"\105\011\036\257\154\107\223\050\237\060\137\020\063\015\377\156"
"\162\230\321\117\026\333\267\322\335\062\077\075\261\355\172\366"
"\367\231\246\144\341\071\215\201\151\354\221\234\371\221\013\153"
"\052\334\273\101\267\162\023\224\244\123\322\125\100\115\114\067"
"\347\362\233\310\053\050\111\225\025\333\061\016\154\075\172\227"
"\031\065\330\320\250\354\145\114\077\067\242\200\204\357\267\154"
"\341\123\064\015\174\176\242\221\131\324\240\306\021\032\136\053"
"\117\066\373\367\043\141\104\142\230\347\342\035\326\232\212\270"
"\356\276\306\152\075\151\374\227\076\234\135\120\266\273\173\006"
"\362\167\376\025\330\103\170\161\052\133\217\001\366\031\272\344"
"\330\201\116\025\352\113\254\051\347\012\171\236\305\365\245\270"
"\154\243\316\105\346\106\267\021\242\106\023\230\137\316\174\067"
"\117\313\115\072\026\371\143\376\003\334\234\311\322\101\202\076"
"\345\120\204\313\227\073\335\071\202\360\321\341\276\116\031\016"
"\031\146\110\057\140\253\056\144\210\312\056\132\014\260\231\361"
"\000\036\275\230\131\232\321\333\213\243\275\112\361\327\130\360"
"\173\100\213\115\034\027\361\331\141\342\261\272\356\360\133\051"
"\217\247\222\222\173\307\304\253\007\247\163\072\212\132\052\005"
"\232\266\123\266\315\104\220"
#define date_z 1
#define date ((&data[311]))
"\375"
#define tst2_z 19
#define tst2 ((&data[312]))
"\031\242\273\246\041\336\076\145\246\300\036\051\047\366\106\356"
"\220\064\226"
#define shll_z 10
#define shll ((&data[331]))
"\142\312\022\213\061\052\357\062\161\266\353\321"
#define inlo_z 3
#define inlo ((&data[343]))
"\216\314\250"
#define msg1_z 65
#define msg1 ((&data[347]))
"\300\115\164\240\306\270\356\211\346\362\207\042\205\377\337\231"
"\113\016\267\021\330\324\374\242\242\336\361\041\143\054\223\355"
"\361\326\220\125\016\336\260\031\012\341\025\102\124\131\005\244"
"\234\133\315\262\013\375\340\025\227\352\060\034\236\222\347\136"
"\160\356\206\333\112\340\006\120\173\274\243\061"
#define chk1_z 22
#define chk1 ((&data[427]))
"\270\017\004\242\044\277\223\036\316\135\273\047\172\354\056\123"
"\141\200\041\375\363\101\127\122\242\373\336\067\346\143\370"
#define text_z 1869
#define text ((&data[549]))
"\071\315\146\114\156\047\322\111\162\262\117\303\055\014\146\137"
"\226\117\042\116\136\046\360\203\135\327\346\126\251\033\243\342"
"\351\012\056\127\062\000\240\244\263\360\147\341\374\316\101\222"
"\035\143\341\174\212\322\377\350\251\345\076\122\001\342\065\352"
"\355\143\101\037\144\342\304\030\323\053\372\320\372\073\142\030"
"\237\104\224\051\026\223\022\300\171\121\023\172\064\110\144\041"
"\131\377\367\164\123\316\261\141\353\367\301\016\274\016\120\047"
"\114\046\100\031\034\140\073\010\260\305\236\267\340\334\172\305"
"\021\246\221\332\021\311\021\154\112\347\316\242\317\135\332\301"
"\336\151\126\072\217\354\230\133\220\107\301\140\001\353\360\166"
"\213\363\372\027\233\047\323\276\201\201\216\023\154\320\161\313"
"\320\152\257\025\322\272\025\153\247\235\321\160\071\321\067\253"
"\241\156\046\022\220\271\031\066\331\215\206\354\323\250\277\275"
"\253\021\137\373\037\247\054\101\371\345\374\104\113\056\231\313"
"\256\361\253\230\051\271\176\340\337\333\050\341\362\056\167\255"
"\110\043\213\146\047\300\122\142\314\236\021\040\074\377\243\374"
"\373\242\311\017\027\025\325\213\232\031\105\104\013\052\212\072"
"\030\104\271\142\045\220\026\110\122\375\151\376\117\030\367\246"
"\217\256\245\325\077\346\276\327\045\113\166\374\164\175\046\022"
"\327\265\135\221\047\346\332\276\260\240\227\230\211\165\023\170"
"\316\154\240\317\001\217\073\173\212\106\115\070\141\315\324\116"
"\204\026\326\026\254\252\257\044\333\310\024\223\327\026\336\312"
"\151\363\273\204\220\242\016\226\317\314\156\124\240\122\232\124"
"\110\055\240\223\016\373\000\136\102\135\122\057\222\070\210\130"
"\012\234\324\361\047\201\232\126\155\021\270\134\303\377\110\250"
"\220\352\314\011\276\260\131\175\233\367\254\266\366\263\014\102"
"\237\066\305\270\257\117\034\316\147\136\133\373\051\333\006\077"
"\242\225\073\276\155\106\311\232\247\112\341\143\016\103\013\062"
"\214\247\315\302\241\024\076\037\135\126\145\227\342\323\061\230"
"\016\246\203\251\033\223\105\251\131\001\060\306\305\034\005\133"
"\161\366\173\132\343\314\135\205\273\260\170\145\370\262\153\321"
"\253\345\131\260\346\020\367\016\127\056\307\040\112\052\012\264"
"\247\057\273\157\016\275\270\226\173\033\071\042\072\142\170\134"
"\045\016\163\251\362\073\214\166\354\103\017\330\122\073\211\204"
"\200\004\003\176\324\343\275\017\056\341\055\071\173\175\144\147"
"\365\115\274\012\253\277\036\370\220\115\307\120\131\037\206\063"
"\355\032\324\265\064\114\014\217\113\302\125\301\033\100\357\042"
"\334\212\202\353\262\040\130\240\027\110\343\271\356\171\001\325"
"\167\062\056\061\210\316\075\142\261\005\116\142\230\367\343\135"
"\174\302\375\047\075\334\222\326\253\073\174\173\360\260\021\344"
"\331\315\146\233\057\007\314\231\256\113\221\021\126\173\045\315"
"\247\126\162\253\375\041\043\263\232\274\171\132\320\020\070\152"
"\013\224\371\045\350\270\077\251\145\063\357\171\036\245\125\315"
"\020\206\333\111\062\331\054\144\346\173\132\113\374\043\022\371"
"\311\101\043\300\337\334\367\145\030\023\207\043\253\042\227\302"
"\350\037\067\332\350\253\117\124\243\341\046\211\061\007\303\154"
"\022\210\064\112\311\170\123\071\332\266\205\151\265\300\343\237"
"\147\001\024\013\173\265\330\375\070\111\044\246\204\155\146\067"
"\036\060\065\251\005\354\200\115\136\076\034\040\335\033\043\221"
"\374\211\170\061\251\321\372\116\023\167\330\007\310\060\175\076"
"\064\242\253\131\116\074\275\022\133\016\203\214\254\115\002\325"
"\046\213\073\107\241\341\273\110\300\236\005\231\275\325\012\175"
"\365\056\370\275\132\330\041\035\166\130\240\013\162\041\163\140"
"\377\225\075\315\115\106\270\277\233\113\106\305\270\240\026\106"
"\317\325\264\324\126\337\214\155\366\331\372\200\306\272\163\333"
"\266\343\246\100\016\002\242\070\231\262\005\137\323\257\343\047"
"\301\206\266\341\302\046\266\167\227\276\125\165\027\044\353\035"
"\043\036\300\137\140\244\156\205\364\361\067\016\324\110\142\167"
"\125\216\360\003\023\161\060\263\356\073\050\173\151\371\005\027"
"\027\273\363\163\017\044\064\055\267\345\052\320\370\132\374\123"
"\020\263\163\176\037\145\346\003\275\377\154\040\166\363\224\240"
"\214\304\332\367\057\146\070\165\101\026\125\361\100\357\001\031"
"\305\363\242\164\125\067\077\063\134\271\250\242\243\022\031\114"
"\225\006\352\203\137\376\201\147\225\372\053\217\331\003\156\143"
"\332\361\315\167\027\232\307\331\314\071\025\271\047\031\126\310"
"\254\200\324\257\022\351\244\007\335\036\150\036\362\072\021\007"
"\140\155\073\242\063\071\162\205\121\257\302\056\155\071\306\057"
"\236\364\027\143\074\375\254\324\117\176\242\267\247\215\374\137"
"\003\123\113\247\064\347\123\321\123\044\211\351\253\045\226\324"
"\034\147\117\066\000\370\074\041\242\137\270\361\106\154\113\045"
"\275\172\101\331\157\137\222\202\136\241\075\132\267\033\325\113"
"\042\352\305\133\274\252\111\213\330\215\261\145\322\246\174\031"
"\267\347\275\247\251\030\255\106\116\362\117\277\024\135\356\172"
"\033\066\346\252\205\144\302\147\131\076\122\021\152\225\313\235"
"\202\066\043\300\027\147\263\001\201\341\121\051\310\140\317\333"
"\131\254\112\104\337\014\320\143\375\231\252\220\064\143\234\000"
"\017\304\317\113\131\055\324\177\367\224\230\264\132\311\261\152"
"\034\137\223\225\365\314\014\076\377\025\023\040\222\043\022\047"
"\332\363\144\102\015\314\010\256\206\065\310\103\337\001\326\206"
"\024\354\074\045\337\107\003\225\137\032\055\332\056\347\073\055"
"\267\115\315\204\061\310\304\007\065\267\107\176\066\216\011\014"
"\066\215\236\247\176\327\164\113\353\215\343\313\302\106\302\250"
"\077\220\165\207\015\144\336\311\065\351\311\163\104\104\267\262"
"\307\057\106\061\110\271\053\136\133\263\066\177\103\212\234\166"
"\271\130\043\076\352\006\066\017\220\207\275\024\235\356\377\344"
"\005\257\200\002\253\123\052\015\326\342\225\116\137\256\213\354"
"\251\026\237\347\166\014\121\075\306\022\247\276\265\017\375\161"
"\174\113\273\017\227\064\057\217\376\326\311\140\354\074\160\121"
"\346\370\327\255\277\376\062\301\033\111\042\016\233\162\101\303"
"\161\123\210\042\157\270\114\252\372\315\352\335\221\115\300\252"
"\163\344\140\324\157\261\256\232\173\171\024\250\006\342\320\340"
"\365\137\167\336\216\320\337\345\265\346\363\133\023\076\121\117"
"\002\021\237\112\206\043\012\370\033\045\133\151\303\330\001\222"
"\073\174\074\320\054\005\127\000\210\240\347\131\256\126\253\007"
"\342\137\135\162\075\344\340\210\333\057\141\042\223\055\006\174"
"\000\005\225\117\203\320\143\136\130\037\333\217\136\371\221\220"
"\052\071\173\374\261\213\235\241\071\260\057\226\360\212\211\346"
"\333\062\135\157\357\316\156\022\111\201\010\151\065\111\364\364"
"\137\005\161\265\354\014\003\204\117\112\075\042\357\165\042\354"
"\263\304\343\323\045\127\244\326\160\216\335\042\353\173\135\061"
"\354\306\013\252\265\013\046\173\100\050\146\372\303\210\171\200"
"\160\377\013\300\245\265\307\146\355\047\052\007\011\214\060\367"
"\177\327\043\302\111\263\123\276\107\220\316\207\024\142\070\325"
"\004\262\276\355\075\175\146\163\370\345\135\214\322\041\105\047"
"\371\073\016\023\064\231\203\005\246\204\203\306\340\002\160\365"
"\315\022\302\170\340\356\151\323\344\242\134\046\134\162\227\117"
"\262\240\062\234\324\135\326\242\341\066\232\314\200\331\124\077"
"\201\245\227\252\073\356\252\367\277\232\331\005\324\350\032\261"
"\035\246\325\177\334\121\146\316\041\043\352\253\373\043\035\234"
"\231\321\046\171\221\105\216\272\025\321\042\222\007\351\363\232"
"\006\016\231\137\124\215\132\071\166\042\065\127\337\253\307\021"
"\337\364\070\261\112\201\310\242\335\104\353\055\277\322\232\240"
"\007\374\034\322\312\373\031\130\204\036\362\373\142\043\273\315"
"\216\373\273\260\310\111\070\031\207\101\325\157\110\142\216\357"
"\172\023\345\067\105\007\375\023\053\256\121\163\255\323\257\132"
"\164\360\307\234\106\130\275\217\211\327\300\322\261\206\364\326"
"\021\255\077\302\202\027\207\370\263\313\333\070\010\115\377\271"
"\173\302\243\224\126\201\255\356\261\176\213\135\216\054\237\371"
"\040\174\342\367\323\053\341\031\333\211\214\042\343\254\122\252"
"\325\326\263\326\325\063\065\362\114\161\314\151\116\237\160\073"
"\321\025\336\117\020\055\371\021\371\104\001\072\204\064\227\333"
"\034\374\123\265\343\026\372\207\264\033\065\316\147\211\142\366"
"\371\257\120\162\107\234\134\010\035\212\241\132\317\254\246\101"
"\020\211\005\051\134\061\043\054\054\137\217\104\376\323\330\050"
"\352\154\072\253\345\214\276\137\300\006\304\341\262\152\043\303"
"\364\051\354\120\132\017\175\207\156\014\313\155\337\244\225\312"
"\020\320\165\366\134\063\126\034\072\032\376\355\205\041\260\171"
"\113\234\312\245\254\107\055\033\123\370\210\063\235\036\375\256"
"\356\163\245\113\247\373\150\341\025\146\316\233\210\177\024\323"
"\034\336\171\310\046\246\343\171\237\153\255\075\211\252\353\170"
"\036\220\304\305\214\054\246\242\222\165\075\033\365\122\357\021"
"\061\150\331\127\017\275\321\257\051\176"
#define chk2_z 19
#define chk2 ((&data[2562]))
"\330\053\107\261\150\156\021\060\277\165\015\167\176\171\251\302"
"\276\160\207\325\012\334"
#define lsto_z 1
#define lsto ((&data[2581]))
"\010"
#define xecc_z 15
#define xecc ((&data[2582]))
"\005\040\327\254\114\361\156\300\024\244\110\337\050\143\126\227"
"\257"
#define tst1_z 22
#define tst1 ((&data[2603]))
"\036\047\271\057\207\076\001\326\201\264\356\151\036\164\071\111"
"\027\304\031\244\017\252\223\354\153\051\130\042\011\260"
#define tst1 ((&data[3]))
"\076\307\154\250\337\352\072\005\260\013\056\141\225\344\005\133"
"\253\344\371\351\041\307\131\136\160\145\161"
#define date_z 1
#define date ((&data[27]))
"\021"
#define inlo_z 3
#define inlo ((&data[28]))
"\227\257\246"
#define lsto_z 1
#define lsto ((&data[31]))
"\143"
#define xecc_z 15
#define xecc ((&data[32]))
"\241\070\147\023\242\032\311\011\301\020\361\311\015\172\342\136"
"\300"
#define shll_z 10
#define shll ((&data[49]))
"\260\306\171\102\023\025\176\252\065\070\222"
#define chk1_z 22
#define chk1 ((&data[61]))
"\205\127\271\174\332\207\352\312\355\001\165\306\123\044\174\071"
"\331\273\243\367\025\221\067"
#define msg1_z 65
#define msg1 ((&data[93]))
"\211\325\350\365\072\132\045\266\252\167\221\362\301\016\061\213"
"\034\342\357\000\156\336\101\027\365\327\375\044\354\025\273\151"
"\100\071\206\270\136\327\212\134\030\235\115\331\301\335\075\151"
"\102\327\245\356\033\244\337\346\220\036\065\050\203\042\264\033"
"\003\121\132\174\136\251\074\222\374\300\044\135\317"
#define tst2_z 19
#define tst2 ((&data[162]))
"\100\263\133\313\272\000\151\235\065\064\107\120\323\147\325\200"
"\363\355\233\114\200\115\237\163"
#define msg2_z 19
#define msg2 ((&data[2632]))
"\341\357\377\335\143\002\251\076\361\005\267\075\204\313\320\034"
"\012\023\243\361\261\374\315\242"
#define msg2 ((&data[187]))
"\014\054\122\201\364\164\320\154\157\346\040\123\364\335\142\071"
"\224\002\277\317\140\257"
#define rlax_z 1
#define rlax ((&data[2653]))
"\121"
#define rlax ((&data[206]))
"\360"
#define opts_z 1
#define opts ((&data[2654]))
"\241"/* End of data[] */;
#define opts ((&data[207]))
"\040"
#define text_z 1969
#define text ((&data[571]))
"\307\027\026\176\302\216\333\221\174\164\113\275\047\231\134\233"
"\023\002\242\037\057\365\100\342\147\370\266\142\204\162\124\114"
"\212\153\313\114\371\246\335\165\033\051\063\102\303\217\336\327"
"\222\201\366\301\166\067\244\336\057\132\101\264\315\225\001\127"
"\000\314\243\371\162\201\157\216\253\242\321\157\062\257\106\305"
"\061\075\206\247\164\053\205\244\205\306\130\123\134\131\252\134"
"\045\116\126\230\317\306\046\173\151\367\352\233\247\060\140\330"
"\155\347\200\342\023\006\206\230\315\337\353\051\071\226\205\137"
"\344\334\367\264\242\036\060\014\026\032\247\276\113\010\226\271"
"\360\026\234\003\035\042\234\352\002\210\023\073\036\231\232\002"
"\165\222\267\030\261\347\044\307\001\314\205\115\325\034\006\305"
"\063\242\311\120\305\145\072\310\355\115\004\014\347\237\016\134"
"\061\306\165\343\255\231\253\257\146\060\374\073\115\003\001\200"
"\245\312\321\153\060\013\063\036\131\067\053\100\326\072\235\010"
"\000\022\353\255\254\226\135\023\307\131\116\025\134\120\226\002"
"\033\147\156\114\163\241\153\314\331\226\015\260\320\252\270\320"
"\275\244\176\152\073\333\175\003\065\314\030\222\034\256\224\067"
"\026\003\203\211\244\356\125\176\205\143\056\125\015\347\045\313"
"\214\244\065\310\177\263\313\264\177\344\106\234\223\333\324\251"
"\336\127\063\203\106\210\002\313\353\061\041\371\031\107\305\245"
"\353\372\155\152\255\071\037\055\036\146\311\261\101\235\133\040"
"\365\216\243\074\027\246\010\003\327\051\374\360\160\301\225\134"
"\274\003\306\152\075\346\227\133\114\141\014\034\314\050\271\077"
"\206\234\025\302\134\204\156\265\232\321\333\201\314\017\017\307"
"\304\323\217\312\105\367\252\237\307\323\204\031\216\324\047\272"
"\315\333\376\362\213\350\245\151\001\350\042\024\355\035\212\360"
"\251\240\000\212\116\245\364\035\053\273\151\200\047\114\072\044"
"\376\304\350\076\277\303\172\277\017\003\165\237\341\364\104\361"
"\244\050\236\223\126\126\037\157\306\045\147\146\051\010\135\005"
"\202\172\335\355\055\041\326\113\152\115\171\172\252\161\011\367"
"\215\074\222\001\133\216\100\057\323\316\164\303\165\147\032\356"
"\047\230\171\315\301\352\202\056\026\152\123\100\021\217\147\140"
"\335\345\233\334\307\254\112\022\343\107\235\113\212\322\077\045"
"\000\025\051\206\075\254\174\042\122\341\071\033\216\041\200\367"
"\373\363\346\032\273\317\004\072\127\327\111\374\243\352\074\136"
"\061\330\322\321\063\153\377\356\107\340\356\032\376\037\140\210"
"\126\021\131\277\242\024\346\001\243\322\264\170\321\222\057\063"
"\065\265\216\135\076\146\363\057\101\133\055\001\303\271\256\055"
"\275\231\260\015\226\255\245\322\007\013\144\054\046\044\000\070"
"\143\141\300\125\021\173\373\235\101\260\301\021\240\002\034\177"
"\225\150\327\064\326\161\135\131\371\362\347\240\036\054\327\147"
"\230\061\070\350\156\203\311\131\176\326\156\312\315\220\123\115"
"\143\102\376\165\222\221\144\107\047\201\124\111\122\064\255\017"
"\371\344\177\033\373\302\034\144\063\274\056\256\057\002\115\161"
"\076\003\353\056\120\365\073\214\142\375\110\003\334\024\053\351"
"\305\354\034\255\004\005\330\033\033\226\102\062\152\033\375\304"
"\305\136\314\012\024\201\347\144\165\274\040\110\120\337\151\106"
"\206\017\234\075\207\356\005\047\142\243\107\257\150\335\361\114"
"\231\157\126\020\046\343\205\377\032\335\152\207\213\236\327\014"
"\035\224\322\277\140\122\244\004\233\173\137\060\276\364\351\215"
"\327\240\043\152\123\054\230\370\152\256\171\120\272\351\002\266"
"\002\005\020\263\000\104\245\134\335\160\063\223\141\036\331\257"
"\127\151\102\173\353\051\040\312\065\176\155\325\211\265\361\127"
"\370\154\260\273\061\272\350\324\243\323\242\233\300\005\124\154"
"\114\123\052\114\205\306\040\236\262\140\000\161\207\332\044\010"
"\305\156\233\231\042\067\331\325\367\055\022\334\015\204\315\042"
"\034\165\362\337\106\076\260\221\021\117\115\334\364\021\054\230"
"\036\226\372\033\117\310\313\117\232\225\243\321\307\052\347\267"
"\045\351\044\162\215\230\046\174\176\374\372\226\027\072\001\264"
"\377\075\350\143\235\024\153\160\175\360\002\135\064\120\276\100"
"\023\241\345\237\347\043\127\335\327\354\361\365\014\364\050\277"
"\351\242\163\006\002\271\000\371\244\045\051\367\144\152\301\275"
"\300\227\323\347\151\325\204\024\361\040\170\062\054\032\017\061"
"\254\136\327\021\251\246\051\210\176\040\006\225\234\356\171\233"
"\363\102\107\246\045\116\252\131\350\042\042\104\131\240\352\064"
"\374\032\076\157\024\210\222\263\320\372\052\355\010\374\063\361"
"\314\252\350\027\115\121\211\317\152\206\251\024\335\205\121\166"
"\244\310\312\130\230\160\347\275\017\351\312\113\115\215\240\165"
"\236\144\376\070\351\047\351\316\355\247\003\025\105\022\023\306"
"\267\153\014\002\105\337\037\160\135\022\115\025\323\250\232\360"
"\273\036\261\260\376\273\055\313\035\270\274\153\342\101\253\160"
"\071\322\321\217\067\225\224\221\222\206\242\262\114\052\031\253"
"\262\127\026\162\370\163\320\241\106\231\126\036\252\250\020\366"
"\055\360\143\003\015\317\345\123\001\157\012\225\072\111\332\213"
"\374\303\162\153\355\205\251\271\274\022\260\367\005\020\063\051"
"\230\141\273\201\355\104\176\204\160\230\273\057\175\313\340\057"
"\236\062\016\277\214\263\065\076\125\302\117\241\204\302\157\213"
"\217\166\147\276\212\010\170\144\353\223\307\100\255\055\232\313"
"\252\003\134\362\266\254\016\205\341\151\354\335\353\122\115\375"
"\072\343\314\147\011\212\257\057\323\222\205\052\371\057\105\044"
"\356\225\340\140\246\361\110\071\036\036\346\023\041\216\270\265"
"\011\067\332\026\375\333\236\271\176\022\363\012\214\272\336\176"
"\126\345\042\245\313\132\077\073\113\265\061\211\261\373\335\312"
"\273\146\334\000\256\026\204\230\303\322\335\245\000\236\116\327"
"\011\361\052\042\212\023\130\010\104\200\134\210\263\334\167\346"
"\005\115\302\177\325\236\215\357\120\200\171\014\035\004\020\374"
"\163\136\177\373\223\150\242\001\347\153\027\116\037\212\111\360"
"\103\041\106\063\046\074\331\152\200\067\335\267\123\146\157\351"
"\323\310\337\263\036\144\236\155\106\247\137\307\341\106\100\126"
"\032\116\310\101\060\214\210\067\060\104\272\144\061\037\375\206"
"\213\265\001\102\252\355\354\210\364\116\276\340\126\234\231\104"
"\033\260\353\163\132\016\155\064\114\137\166\165\255\313\276\234"
"\076\315\145\331\323\035\262\173\220\054\350\231\020\314\061\220"
"\047\350\133\335\304\252\363\117\256\363\123\042\367\243\201\371"
"\255\172\366\074\126\013\043\072\305\226\345\026\337\217\377\206"
"\214\037\260\206\266\052\130\244\005\076\060\375\370\127\051\060"
"\212\064\050\171\233\327\170\271\030\272\135\141\340\043\175\266"
"\065\015\056\323\037\041\164\227\004\071\270\376\231\172\051\366"
"\061\027\067\332\335\373\150\060\141\033\273\077\302\030\326\236"
"\366\121\175\036\002\146\040\310\043\342\042\103\043\257\061\135"
"\160\154\055\122\001\140\366\271\100\246\313\263\302\356\134\007"
"\267\326\370\162\141\343\113\026\160\332\253\204\243\345\056\340"
"\012\035\275\234\100\316\105\350\210\045\152\235\370\125\045\213"
"\322\360\114\066\302\271\323\103\261\377\010\272\010\063\365\274"
"\302\224\107\114\306\031\064\343\203\120\142\027\222\015\042\153"
"\064\273\254\305\313\244\133\201\373\144\320\003\143\117\377\037"
"\037\034\320\374\316\004\223\204\326\111\303\014\123\154\254\175"
"\250\316\323\205\234\266\145\171\323\003\114\156\052\314\043\011"
"\224\133\045\046\270\212\340\245\377\005\067\334\104\257\045\026"
"\001\366\235\324\336\360\067\026\036\370\370\315\057\041\270\104"
"\002\320\364\365\050\235\234\266\360\060\253\007\235\262\102\340"
"\076\275\354\130\377\307\057\271\363\275\220\034\110\120\273\231"
"\255\322\324\342\033\127\211\164\255\035\164\070\064\025\156\125"
"\323\270\216\272\336\252\226\146\167\271\166\046\150\065\271\043"
"\022\223\276\142\141\044\215\231\013\206\234\244\333\014\022\351"
"\350\142\141\124\362\017\007\032\102\336\164\244\120\347\051\051"
"\042\210\142\067\044\230\322\340\331\343\232\323\327\345\240\307"
"\036\100\245\106\073\045\357\151\000\161\257\352\313\361\045\377"
"\023\214\137\262\237\263\136\252\331\336\023\076\145\075\207\254"
"\346\267\076\217\126\227\030\275\140\146\071\255\057\377\151\111"
"\141\253\022\262\307\254\140\055\276\216\054\155\304\024\373\032"
"\037\143\270\032\155\156\215\332\136\035\372\326\126\101\251\143"
"\102\245\306\326\161\071\076\034\027\146\241\314\273\251\367\161"
"\126\316\220\145\103\176\275\241\032\011\177\102\231\372\142\246"
"\257\007\076\352\145\176\053\266\062\225\122\170\324\223\142\105"
"\332\021\042\331\354\037\341\113\320\167\155\243\156\100\361\212"
"\300\306\143\273\065\342\071\030\354\255\207\065\003\057\257\376"
"\221\052\324\140\160\032\106\111\116\134\157\145\164\152\272\257"
"\066\014\356\262\013\034\127\162\147\352\247\261\165\301\146\317"
"\262\145\247\002\233\124\121\175\130\340\302\271\177\327\277\025"
"\147\221\220\337\075\307\313\033\175\220\133\072\014\114\132\214"
"\011\121\330\057\217\154\067\374\354\230\173\051\064\107\301\366"
"\223\063\113\053\351\343\122\226\264\062\123\315\026\022\256\300"
"\241\357\225\151\055\351\222\214\107\002\357\002\140\156\016\040"
"\055\331\352\325\274\105\165\107\346\036\325\114\120\236\015\062"
"\044\050\155\276\326\127\173\116\336\213\307\116\126\226\114\240"
"\377\010\223\232\047\301\337\213\003\234\131\111\142\355\226\003"
"\151\267\150\070\244\330\067\062\250\344\224\305\263\134\011\211"
"\346\074\203\262\177\217\015\163\164\332\274\052\363\243\013\157"
"\071\111\154\151\316\334\253\001\273\207\257\361\324\212\027\120"
"\272\357\060\340\006\047\277\331\123\163\047\033\117\040\145\044"
"\164\365\252\345\177\126\035\247\177\234\263\352\244\233\206\103"
"\276\057\370\346\126\212\036\347\030\262\243\276\144\111\300\333"
"\335\174\124\100\164\312\146\112\220\030\277\356\134\361\304\045"
"\320\237\275\245\355\046\166\366\376\202\052\151\173\157\050\006"
"\372\023\100\304\075\115\176\256\054\061\004\313\216\377\150\256"
"\365\366\122\061\015\370\072\020\317\144\015\300\324\317\125\061"
"\213\131\367\366\227\336\216\362\052\357\377\271\357\147\147\344"
"\135\272\026\153\262\120\173\202\264\211\102\211\130\230\272\344"
"\362\262\332\211\220\150\174\273\130\173\164\110\343\334\054\101"
"\226\103\254\111\223\050\314\110\261\016\322\012\247\215\356\232"
"\100\310\043\320\061\240\214\212\033\001\322\376\335\377\100\163"
"\102\354\275\326\024\211\037\306\227\361\320\077\177\277\331\277"
"\207\375\220\271\235\034\104\271\035\026\270\373\025\370\157\130"
"\344\054\057\371\265\116\300\115\100\220\214\277\117\146\176\327"
"\144\017\221\001\053\325\273\111\353\163\104\001\153\263\132\120"
"\340\211\112\225\327\012\342\030\232\157\327\352\326\126\302\072"
"\145\123\074\221\050\367\332\024\153\037\026\326\323\160\047\264"
"\372\161\111\321\173\054\351\026\233\301\001\161\027\303\254\175"
"\026\350\016\077\340\351\124\113\011\152\042\335\333\111\221\325"
"\273\332\247\067\007\221\115\242\123\117\024\152\022\300\350\051"
"\251\367\151\211\340\275\325\352\050\367\310\003\101\131\331\374"
"\064\200\064\073\022\201\336\145\320\362\320\343\263\270\014\134"
"\257\165\346\220\063\273\173\133\262\103\136\363\235\067\360\322"
"\270\044\016\312\246\354\060\167\337\000\132\222\270\147\357\150"
"\335\325\371\020\220\165\153\103\271\312\066\126\002\047\050\273"
"\114\067\206\362\043\266\152\002\266\305\225\157\055\204\330\012"
"\132\322\033\352\107\206\055\000\121\144\127\123\214\200\017\330"
"\267\225\313\332\113\065\335\002\372\163\161\047\370\111\062\122"
"\034\115\074\143\324\152\143\045\316\272\171\132\072\210\063\362"
"\035\376\314\151\063\252\153\056\036\334\126\026\046\210\150\102"
"\326\245\246\252\020\012\320\337\305\111\072\000\321\155\362\357"
"\153\277\130\237\152\303\316\210\240\044\236\307\255\007\012\204"
"\255\260\056\275\272\376\234\200\110\327\200\031\104\162\011\260"
"\061\142\120\233\045\036\044\306\103\302\215\361"
#define chk2_z 19
#define chk2 ((&data[3006]))
"\167\110\276\076\337\263\055\021\326\376\303\271\116\177\005\021"
"\234\135\257\323\215\244\065"
#define pswd_z 256
#define pswd ((&data[3068]))
"\203\353\251\003\005\355\165\016\236\247\161\356\103\226\015\147"
"\135\121\052\353\102\364\202\270\154\313\135\241\316\000\163\121"
"\353\034\124\361\012\312\000\251\162\005\311\130\172\225\170\335"
"\232\200\230\127\166\017\071\346\214\020\070\345\002\106\026\001"
"\255\273\027\006\265\250\341\042\256\252\173\050\077\363\006\332"
"\164\236\062\353\255\153\321\071\174\012\037\176\121\066\200\376"
"\361\227\005\247\100\347\312\356\221\105\027\321\071\035\253\255"
"\273\335\230\151\110\152\243\305\165\302\103\306\371\303\305\352"
"\133\313\222\234\262\134\212\104\242\241\025\333\277\301\211\172"
"\237\042\344\350\215\207\255\003\112\360\311\103\264\217\056\020"
"\133\300\254\015\034\067\121\276\330\147\232\227\050\044\022\310"
"\106\366\260\323\175\135\326\307\116\240\013\002\060\071\023\213"
"\371\300\231\026\367\353\325\317\123\157\147\174\223\172\104\332"
"\160\364\255\356\121\204\266\237\045\301\242\125\372\266\341\363"
"\166\172\012\155\146\337\075\271\116\244\065\342\036\171\274\217"
"\155\152\176\277\357\064\137\024\365\002\151\360\270\113\344\056"
"\306\356\234\054\315\331\346\034\175\033\377\234\225\274\054\003"
"\047\252\302\026\336\042\052\324\044\224\305\334\337\251\013\245"
"\230\247\322\145\200\270\202\376\324\161\227\266\010\245\036\145"
"\366\111\120\071\076\323\361\252\236\116\114\155\117\300\276\073"
"\335\023\054\350\336\055\221\121\236\051\007\246\316\046\014\305"
"\157\135\376\256\060\360\131\317\077\245\074\216\146\373"/* End of data[] */;
#define hide_z 4096
#define SETUID 0 /* Define as 1 to call setuid(0) at start of script */
#define DEBUGEXEC 0 /* Define as 1 to debug execvp calls */
#define TRACEABLE 1 /* Define as 1 to enable ptrace the executable */
#define HARDENING 0 /* Define as 1 to disable ptrace/dump the executable */
#define BUSYBOXON 0 /* Define as 1 to enable work with busybox */
#if HARDENING
static const char * shc_x[] = {
"/*",
" * Copyright 2019 - Intika <intika@librefox.org>",
" * Replace ******** with secret read from fd 21",
" * Also change arguments location of sub commands (sh script commands)",
" * gcc -Wall -fpic -shared -o shc_secret.so shc_secret.c -ldl",
" */",
"",
"#define _GNU_SOURCE /* needed to get RTLD_NEXT defined in dlfcn.h */",
"#define PLACEHOLDER \"********\"",
"#include <dlfcn.h>",
"#include <stdlib.h>",
"#include <string.h>",
"#include <unistd.h>",
"#include <stdio.h>",
"#include <signal.h>",
"",
"static char secret[128000]; //max size",
"typedef int (*pfi)(int, char **, char **);",
"static pfi real_main;",
"",
"// copy argv to new location",
"char **copyargs(int argc, char** argv){",
" char **newargv = malloc((argc+1)*sizeof(*argv));",
" char *from,*to;",
" int i,len;",
"",
" for(i = 0; i<argc; i++){",
" from = argv[i];",
" len = strlen(from)+1;",
" to = malloc(len);",
" memcpy(to,from,len);",
" // zap old argv space",
" memset(from,'\\0',len);",
" newargv[i] = to;",
" argv[i] = 0;",
" }",
" newargv[argc] = 0;",
" return newargv;",
"}",
"",
"static int mymain(int argc, char** argv, char** env) {",
" //fprintf(stderr, \"Inject main argc = %d\\n\", argc);",
" return real_main(argc, copyargs(argc,argv), env);",
"}",
"",
"int __libc_start_main(int (*main) (int, char**, char**),",
" int argc,",
" char **argv,",
" void (*init) (void),",
" void (*fini)(void),",
" void (*rtld_fini)(void),",
" void (*stack_end)){",
" static int (*real___libc_start_main)() = NULL;",
" int n;",
"",
" if (!real___libc_start_main) {",
" real___libc_start_main = dlsym(RTLD_NEXT, \"__libc_start_main\");",
" if (!real___libc_start_main) abort();",
" }",
"",
" n = read(21, secret, sizeof(secret));",
" if (n > 0) {",
" int i;",
"",
" if (secret[n - 1] == '\\n') secret[--n] = '\\0';",
" for (i = 1; i < argc; i++)",
" if (strcmp(argv[i], PLACEHOLDER) == 0)",
" argv[i] = secret;",
" }",
"",
" real_main = main;",
"",
" return real___libc_start_main(mymain, argc, argv, init, fini, rtld_fini, stack_end);",
"}",
"",
0};
#endif /* HARDENING */
/* rtc.c */
#include <sys/stat.h>
@ -365,156 +328,6 @@ void arc4(void * str, int len)
/* End of ARC4 */
#if HARDENING
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <signal.h>
#include <sys/prctl.h>
#define PR_SET_PTRACER 0x59616d61
/* Seccomp Sandboxing Init */
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#include <linux/filter.h>
#include <linux/seccomp.h>
#include <linux/audit.h>
#define ArchField offsetof(struct seccomp_data, arch)
#define Allow(syscall) \
BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, SYS_##syscall, 0, 1), \
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW)
struct sock_filter filter[] = {
/* validate arch */
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, ArchField),
BPF_JUMP( BPF_JMP+BPF_JEQ+BPF_K, AUDIT_ARCH_X86_64, 1, 0),
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),
/* load syscall */
BPF_STMT(BPF_LD+BPF_W+BPF_ABS, offsetof(struct seccomp_data, nr)),
/* list of allowed syscalls */
Allow(exit_group), /* exits a process */
Allow(brk), /* for malloc(), inside libc */
Allow(mmap), /* also for malloc() */
Allow(munmap), /* for free(), inside libc */
/* and if we don't match above, die */
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),
};
struct sock_fprog filterprog = {
.len = sizeof(filter)/sizeof(filter[0]),
.filter = filter
};
/* Seccomp Sandboxing - Set up the restricted environment */
void seccomp_hardening() {
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
perror("Could not start seccomp:");
exit(1);
}
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &filterprog) == -1) {
perror("Could not start seccomp:");
exit(1);
}
}
/* End Seccomp Sandboxing Init */
void shc_x_file() {
FILE *fp;
int line = 0;
if ((fp = fopen("/tmp/shc_x.c", "w")) == NULL ) {exit(1); exit(1);}
for (line = 0; shc_x[line]; line++) fprintf(fp, "%s\n", shc_x[line]);
fflush(fp);fclose(fp);
}
int make() {
char * cc, * cflags, * ldflags;
char cmd[4096];
cc = getenv("CC");
if (!cc) cc = "cc";
sprintf(cmd, "%s %s -o %s %s", cc, "-Wall -fpic -shared", "/tmp/shc_x.so", "/tmp/shc_x.c -ldl");
if (system(cmd)) {remove("/tmp/shc_x.c"); return -1;}
remove("/tmp/shc_x.c"); return 0;
}
void arc4_hardrun(void * str, int len) {
//Decode locally
char tmp2[len];
char tmp3[len+1024];
memcpy(tmp2, str, len);
unsigned char tmp, * ptr = (unsigned char *)tmp2;
int lentmp = len;
int pid, status;
pid = fork();
shc_x_file();
if (make()) {exit(1);}
setenv("LD_PRELOAD","/tmp/shc_x.so",1);
if(pid==0) {
//Start tracing to protect from dump & trace
if (ptrace(PTRACE_TRACEME, 0, 0, 0) < 0) {
kill(getpid(), SIGKILL);
_exit(1);
}
//Decode Bash
while (len > 0) {
indx++;
tmp = stte[indx];
jndx += tmp;
stte[indx] = stte[jndx];
stte[jndx] = tmp;
tmp += stte[indx];
*ptr ^= stte[tmp];
ptr++;
len--;
}
//Do the magic
sprintf(tmp3, "%s %s", "'********' 21<<<", tmp2);
//Exec bash script //fork execl with 'sh -c'
system(tmp2);
//Empty script variable
memcpy(tmp2, str, lentmp);
//Clean temp
remove("/tmp/shc_x.so");
//Sinal to detach ptrace
ptrace(PTRACE_DETACH, 0, 0, 0);
exit(0);
}
else {wait(&status);}
/* Seccomp Sandboxing - Start */
seccomp_hardening();
exit(0);
}
#endif /* HARDENING */
/*
* Key with file invariants.
*/
@ -601,54 +414,6 @@ int chkenv(int argc)
void chkenv_end(void){}
#if HARDENING
static void gets_process_name(const pid_t pid, char * name) {
char procfile[BUFSIZ];
sprintf(procfile, "/proc/%d/cmdline", pid);
FILE* f = fopen(procfile, "r");
if (f) {
size_t size;
size = fread(name, sizeof (char), sizeof (procfile), f);
if (size > 0) {
if ('\n' == name[size - 1])
name[size - 1] = '\0';
}
fclose(f);
}
}
void hardening() {
prctl(PR_SET_DUMPABLE, 0);
prctl(PR_SET_PTRACER, -1);
int pid = getppid();
char name[256] = {0};
gets_process_name(pid, name);
if ( (strcmp(name, "bash") != 0)
&& (strcmp(name, "/bin/bash") != 0)
&& (strcmp(name, "sh") != 0)
&& (strcmp(name, "/bin/sh") != 0)
&& (strcmp(name, "sudo") != 0)
&& (strcmp(name, "/bin/sudo") != 0)
&& (strcmp(name, "/usr/bin/sudo") != 0)
&& (strcmp(name, "gksudo") != 0)
&& (strcmp(name, "/bin/gksudo") != 0)
&& (strcmp(name, "/usr/bin/gksudo") != 0)
&& (strcmp(name, "kdesu") != 0)
&& (strcmp(name, "/bin/kdesu") != 0)
&& (strcmp(name, "/usr/bin/kdesu") != 0)
)
{
printf("Operation not permitted\n");
kill(getpid(), SIGKILL);
exit(1);
}
}
#endif /* HARDENING */
#if !TRACEABLE
#define _LINUX_SOURCE_COMPAT
@ -660,14 +425,9 @@ void hardening() {
#include <stdio.h>
#include <unistd.h>
#if !defined(PT_ATTACHEXC) /* New replacement for PT_ATTACH */
#if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
#define PT_ATTACHEXC PT_ATTACH
#elif defined(PTRACE_ATTACH)
#define PT_ATTACHEXC PTRACE_ATTACH
#endif
#if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
# define PTRACE_ATTACH PT_ATTACH
#endif
void untraceable(char * argv0)
{
char proc[80];
@ -685,7 +445,7 @@ void untraceable(char * argv0)
close(0);
mine = !open(proc, O_RDWR|O_EXCL);
if (!mine && errno != EBUSY)
mine = !ptrace(PT_ATTACHEXC, pid, 0, 0);
mine = !ptrace(PTRACE_ATTACH, pid, 0, 0);
if (mine) {
kill(pid, SIGCONT);
} else {
@ -740,12 +500,6 @@ char * xsh(int argc, char ** argv)
if (!rlax[0] && key_with_file(shll))
return shll;
arc4(opts, opts_z);
#if HARDENING
arc4_hardrun(text, text_z);
exit(0);
/* Seccomp Sandboxing - Start */
seccomp_hardening();
#endif
arc4(text, text_z);
arc4(tst2, tst2_z);
key(tst2, tst2_z);
@ -795,15 +549,9 @@ char * xsh(int argc, char ** argv)
int main(int argc, char ** argv)
{
#if SETUID
setuid(0);
#endif
#if DEBUGEXEC
debugexec("main", argc, argv);
#endif
#if HARDENING
hardening();
#endif
#if !TRACEABLE
untraceable(argv[0]);
#endif

@ -61,14 +61,14 @@ fi
### 选择包信息位置
if [ -e "/var/lib/apt/lists/d.spark-app.store_store_Packages" ];then
PACKAGES_DATA_PATH="/var/lib/apt/lists/d.spark-app.store_store_Packages"
if [ -e "/var/lib/apt/lists/d.spark-app.store_aarch64-store_Packages" ];then
PACKAGES_DATA_PATH="/var/lib/apt/lists/d.spark-app.store_aarch64-store_Packages"
echo "星火仓库的Packages位置为 $PACKAGES_DATA_PATH是星火域名单目录仓库配置"
elif [ -e "/var/lib/apt/lists/d.store.deepinos.org.cn_store_Packages" ];then
PACKAGES_DATA_PATH="/var/lib/apt/lists/d.store.deepinos.org.cn_store_Packages"
elif [ -e "/var/lib/apt/lists/d.store.deepinos.org.cn_aarch64-store_Packages" ];then
PACKAGES_DATA_PATH="/var/lib/apt/lists/d.store.deepinos.org.cn_aarch64-store_Packages"
echo "星火仓库的Packages位置为 $PACKAGES_DATA_PATH是星火域名单目录仓库配置"
else
PACKAGES_DATA_PATH="/var/lib/apt/lists/mirrors.sdu.edu.cn_spark-store-repository_store_Packages"
PACKAGES_DATA_PATH="/var/lib/apt/lists/mirrors.sdu.edu.cn_spark-store-repository_aarch64-store_Packages"
echo "星火仓库的Packages位置为 $PACKAGES_DATA_PATH是SDU镜像仓库配置"
fi

@ -50,7 +50,6 @@ fi
# The code above is modified from https://blog.csdn.net/yaxuan88521/article/details/120516298
# 每日更新星火源文件
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"