milbit
This commit is contained in:
parent
5d97c85d88
commit
453600915f
1 changed files with 14 additions and 14 deletions
28
bin/milbit
28
bin/milbit
|
@ -42,9 +42,9 @@ echo '<action signal="cursor_changed">get_info '$1'</action>
|
||||||
|
|
||||||
gtk_upload_report(){
|
gtk_upload_report(){
|
||||||
export UP_REPORT='
|
export UP_REPORT='
|
||||||
'`start_window "Upload file" info 500 250`'
|
'`start_window "Dosyayı Yükle" info 500 250`'
|
||||||
<hbox>
|
<hbox>
|
||||||
'`pixmapfile 36 36 /usr/share/pixmaps/Milis/Ağ.png`'
|
'`pixmapfile 36 36 /usr/share/pixmaps/network.png`'
|
||||||
'`txtcolor 440 darkred x-large normal " Kayıt dosyasını analiz için internete yapıştırın."`'
|
'`txtcolor 440 darkred x-large normal " Kayıt dosyasını analiz için internete yapıştırın."`'
|
||||||
</hbox>
|
</hbox>
|
||||||
'`hsep`'
|
'`hsep`'
|
||||||
|
@ -457,7 +457,7 @@ gtkdialog -p MILIS_BILGI > $tmpsi/dump
|
||||||
|
|
||||||
[ `egrep -o "Cancel|abort" $tmpsi/dump` ] && { rm -rf $tmpsi; exit; }
|
[ `egrep -o "Cancel|abort" $tmpsi/dump` ] && { rm -rf $tmpsi; exit; }
|
||||||
|
|
||||||
[[ `grep "Açık Dosyayı Kaydet" $tmpsi/dump` ]] && gtk_upload_report
|
[[ `grep "Dosyaya Yazdır" $tmpsi/dump` ]] && gtk_upload_report
|
||||||
|
|
||||||
if [[ `grep "Kapsamlı Rapor" $tmpsi/dump` ]]; then
|
if [[ `grep "Kapsamlı Rapor" $tmpsi/dump` ]]; then
|
||||||
export STATE=MANUAL
|
export STATE=MANUAL
|
||||||
|
@ -534,17 +534,17 @@ if [[ `grep "Kapsamlı Rapor" $tmpsi/dump` ]]; then
|
||||||
cat /var/log/Xorg.0.log >> $info 2>/dev/null
|
cat /var/log/Xorg.0.log >> $info 2>/dev/null
|
||||||
echo "" >> $info
|
echo "" >> $info
|
||||||
echo "XSESSION HATALARI:" >> $info
|
echo "XSESSION HATALARI:" >> $info
|
||||||
[ -f /root/.xsession-errors ] && echo "Kullanıcı: root" >> $info && tail -n300 /root/.xsession-errors >> $info
|
[ -f /root/.xsession-HATALARI ] && echo "Kullanıcı: root" >> $info && tail -n300 /root/.xsession-HATALARI >> $info
|
||||||
for a in `grep -v "\!" /etc/shadow|cut -d':' -f1|sed 'root/d'`; do
|
for a in `grep -v "\!" /etc/shadow|cut -d':' -f1|sed 'root/d'`; do
|
||||||
[ -f /home/$a/.xsession-errors ] && echo "Kullanıcı: $a" >> $info && tail -n300 /home/$a/.xsession-errors >> $info
|
[ -f /home/$a/.xsession-HATALARI ] && echo "Kullanıcı: $a" >> $info && tail -n300 /home/$a/.xsession-HATALARI >> $info
|
||||||
done
|
done
|
||||||
kill_manual_progress
|
kill_manual_progress
|
||||||
gtk_upload_report
|
gtk_upload_report
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pastebin_message(){
|
yapistirnet_message(){
|
||||||
echo '
|
echo '
|
||||||
<window window_position="1" title="Milis message" icon-name="cdr" allow-shrink="false" width-request="'$2'">
|
<window window_position="1" title="Milis Yapıştırma Mesajı" icon-name="cdr" allow-shrink="false" width-request="'$2'">
|
||||||
<vbox>
|
<vbox>
|
||||||
<hbox>
|
<hbox>
|
||||||
<frame>
|
<frame>
|
||||||
|
@ -562,7 +562,7 @@ echo '
|
||||||
</vbox>
|
</vbox>
|
||||||
</window>
|
</window>
|
||||||
' | gtkdialog -s
|
' | gtkdialog -s
|
||||||
}; export -f pastebin_message
|
}; export -f yapistirnet_message
|
||||||
|
|
||||||
## If Kullanıcı chose to upload then do it, else dump to /root/desktop
|
## If Kullanıcı chose to upload then do it, else dump to /root/desktop
|
||||||
if [ `egrep -o "Yes|yes" $tmpsi/upload.tmp` ]; then
|
if [ `egrep -o "Yes|yes" $tmpsi/upload.tmp` ]; then
|
||||||
|
@ -570,18 +570,18 @@ if [ `egrep -o "Yes|yes" $tmpsi/upload.tmp` ]; then
|
||||||
if [ $answ -eq 0 ]; then
|
if [ $answ -eq 0 ]; then
|
||||||
export STATE=MANUAL
|
export STATE=MANUAL
|
||||||
echo "Lütfen bekleyiniz,yükleniyor" > /tmp/.message
|
echo "Lütfen bekleyiniz,yükleniyor" > /tmp/.message
|
||||||
manual_progress "Pastebin"
|
manual_progress "ix.io"
|
||||||
wgetpaste -n Milis-Kullanıcı -s codepad $info > $tmpsi/link.tmp
|
cat $info | curl -F 'f:1=<-' ix.io > $tmpsi/link.tmp
|
||||||
kill_manual_progress
|
kill_manual_progress
|
||||||
export lnk=`awk '{print$NF}' < $tmpsi/link.tmp`
|
export lnk=`awk '{print$NF}' < $tmpsi/link.tmp`
|
||||||
echo $lnk > /tmp/pastebin-link.txt
|
echo $lnk > /tmp/ixio-link.txt
|
||||||
pastebin_message "Your file was uploaded to $lnk (You may select and copy this text) and this address is now in the file /tmp/pastebin-link.txt." 500 gtk-yes
|
yapistirnet_message "Dosyanız $lnk adresinde ayrıca bu link /tmp/ixio-link.txt. dosyasında." 500 gtk-yes
|
||||||
else
|
else
|
||||||
cp $info /root/Desktop/psinfo_report.txt
|
cp $info /root/Desktop/psinfo_report.txt
|
||||||
gtk_message "No internet connection found. Your report was placed at /root/Desktop/psinfo_report.txt" 450 gtk-dialog-error
|
gtk_message "İnternet bağlantınız yok!.Raporunuz /root/Desktop/psinfo_report.txt dosyasına kayıt edildi." 450 gtk-dialog-error
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
cp $info /root/Desktop/psinfo_report.txt
|
cp $info /root/Desktop/psinfo_report.txt
|
||||||
gtk_message "Your file has been placed at /root/Desktop/psinfo_report.txt" 500 gtk-yes
|
gtk_message "Raporunuz /root/Desktop/psinfo_report.txt dosyasına kayıt edildi." 500 gtk-yes
|
||||||
fi
|
fi
|
||||||
rm -rf $tmpsi
|
rm -rf $tmpsi
|
||||||
|
|
Loading…
Add table
Reference in a new issue