Translate

viernes, enero 17, 2020

Comandos SSH, shell


Commandos:

Paste this into the first terminal window:
./tcprelay.py -t 44:2222

Paste this into the second terminal window:
ssh root@localhost -p 2222

After you see “-bash-3.2#”, paste these lines individually, followed by enter:

mount -o rw,union,update /

echo "" >> /.mount_rw

cp -r /var/binpack/Applications/loader.app /Applications

————————————————————————————

Agregar archivos Open y Info en iFunBox

————————————————————————————

Seguimos los comandos..


cp /var/mobile/Media/Downloads/open /usr/bin

chmod 755 /usr/bin/open

cp /var/mobile/Media/Downloads/Info.plist /Applications/loader.app


uicache --all 


killall backboardd


cp /Applications/Preferences.app/Preferences /Applications/Setup.app


cd /Applications/Setup.app


mv Setup Setuporiginal


mv Preferences Setup

uicache --all 


killall backboardd


Abrimos Checkra1n


open kjc.loader


Instalamos Cydia …. ….


Debería de regresar ajustes .!



Abrimos iFunBox


ELIMINAR INFO.PLIST ANTERIOR Y METER EL DE CYDIA….



cp /var/mobile/Media/Downloads/Info.plist /Applications/Cydia.app



uicache --all


killall backboardd



ABRIMOS CYDIA APP


open com.saurik.Cydia


Ignoramos instalar paquetes…


HORA DE LOS TWEAKS:


AGREGAR REPO:

rpetri.ch/repo



Buscamos tweak ACTIVATOR — se coloca en cola

Buscar: Apple file conduit — En Cola

Buscar: Filza — En Cola



IFUNBOX BORRAR EL PLIST DE CYDIA Y METER EL DE FILZA




Comandos para filza ..




cp /var/mobile/Media/Downloads/Info.plist /Applications/Filza.app


uicache --all



killall backboardd



ABRIMOS FILZA


open com.tigisoftware.Filza



Jugaremos con rutas en filza

/Applications  buscamos la carpeta Preferences.App y entramos


Buscamos Info.plist - y damos en la “i” de información

Add item — y lo nombramos “ SBIsLaunchableDuringSetup”
Tipo: Booleana
Valor: 1



ENTREMOS A CYDIA DE NUEVO


open com.saurik.Cydia


Buscar tweak Sudo y se instala …

Buscar: Activate Command y se instala …




ABRIMOS FILZA CON EL COMANDO



open com.tigisoftware.Filza



RUTA:

/Applications Carpeta CkeckBoard.app entrees en ella

Vas al info.plist entras y presionas en “i”


Agregas la misma variable


Add item — y lo nombramos “ SBIsLaunchableDuringSetup”
Tipo: Booleana
Valor: 1




ABRIMOS CYDIA


open com.saurik.Cydia


AGREGAMOS LA REPO: udevsharold.github.io/repo/


Buscamos tweak: ActivatorHomeButtonCrashFix




PARTE FINAL MUCHA ANTENCION:


ENTRAR A FILZA:


open com.tigisoftware.Filza


VAMOS A JUGAR

Rutas:


Etc/  buscar archivo sudotes — editar y seleccionamos

 Damos en la flecha de enviar - abrir con - editor de texto


Y buscamos … user privilege specification

En el espacio en blanco agregamos:


mobile ALL=(ALL) NOPASSWD:ALL

Guardamos




Siguiente ruta:


Library/PreferencesBundles/ActivateCommandSettings.Blundle


Escoges info.plist

Vas al info.plist entras y presionas en “i”


Agregas la misma variable


Add item — y lo nombramos “ SBIsLaunchableDuringSetup”
Tipo: Booleana
Valor: 1




Vamos a terminal



uicache --all



killall backboardd



Abrimos ajustes con el comando


open com.apple.Preferences



Vamos hacia abajo donde aparecen tweaks


Vamos a activatedCommand



  ATENCION 


ENTRAMOS Y NOS DIRIJIMOS A COMMAND1:


open com.apple.CheckerBoard


COMMAND2:


sudo mv /Applications/Setup.app /Applications/Setup.bal && uicache && open com.apple.CheckerBoard && sudo mv /Applications/Setup.bal /Applications/Setup.app


COMMAND3

sudo uicache


Vamos atras



Activar gestos



Entremos a activator

Vamos donde dice en cualquier lugar


Deslizar hacia adentro


Desde arriba derecha entramos — pulsamos activar control center


Desde arriba izquierda — Command1




Bajamos hasta dispositivo


Bloqueado — Command3



Desbloquear — Command2


Salir de todo hasta llegar a ajustes




Springboard


En terminal

cd /Applications

Ls


Si esta bloqueado en hello

mv Setup.bal Setup.app


uicache —all

Killall backboardd



EN CASO DE ERROR TIPEAR LO SIGUIENTE:



mv /Library/MobileSubstrate/DynamicLibraries/ActivateCommand.dylib /Library/MobileSubstrate/DynamicLibraries/ActivateCommand.dylib.bak


mv Setup.bal Setup.app

open com.apple.Preferences



Probamos:

open com.apple.CheckerBoard




SI NO HAY ERRORES SE REPARA EL TWEAK.


Abrir Filza


open com.tigisoftware.Filza


Library/MobileSubstrate


Renombrar dylib.bak


Killall backboardd






lunes, diciembre 09, 2019

How to run checkra1n on Windows and Linux with ra1nstorm

Before attempting to do anything related to ra1nstorm, make a backup before using ra1nstorm. This software is provided WITHOUT WARRANTY in the hopes that it will be useful. myicloudinfo does not accept responsibility for any damages that may occur. also use this tutorial on a machine with 6GB or up of RAM.
Please follow all instructions, it is very important. If you run an error, please report it to the Rainstorm Discord or on Github.
Automatically configures an environment to run checkra1n!

STAGE 1

(Note: If you have Unbuntu, skip to # Stage 2)
For Windows Users:
  • Download setup.exe
  • Run it, it will download Xubuntu, wait till it finishes.
  • Once it finishes open Xubuntu installer.
  • When the Xubuntu installer is opened choose the 64GB option, and then install.
  • After the installation, run boot on BIOS. Enter the computer BIOS (probably F12 on boot) For your computer, look into your computer’s manual on how to boot using BIOS.
  • In BIOS, disable SECURE BOOT, enable VT-D and VT-X if shown on your BIOS. Note: if it isn’t shown, it’s already enabled.
  • Restart your computer and boot in Xubuntu. (Note: look into your computer’s owners manual in how to boot into another OS)
  • Set up Xubuntu, and now you have Xubuntu. (Linux running on windows).

STAGE 2

Enter these commands: 

cd Desktop
sudo bash ralnstorm.run
  • A screen will pop up, that’ll be your instruction screen.
  • (Note: FOLLOW ALL INSTRUCTIONS on the screen)
  • (Note: If you run on an error, Ask the Ra1nStorm Discord or Send an issue on RainStorm Github)
  • (Note: Some downloads make take some time depending on your internet connection. Be patient)
  • Once see the KVM screen, you will be met with CLover Boot on the screen, with your keyboard, select macOS Installer. It will boot into the installer.
  • Once you’re in the macOS installer, on the instruction screen, follow the instructions.
  • (Note: The installation may take some time, be patient.)
  • Once the macOS installation finishes, Plug in your iPhone and disconnect all other USBs except the iPhone.
  • Follow the last step on your Instruction screen. (Note: This is very important, follow the instructions)
  • Set up the Mac.
  • Once finished finish the instruction screen and reboot your computer.
  • Boot back into Xubuntu.

IT STAGE 3

  • Go into your terminal.
  • Before the next step, plug in your iPhone and keep it plugged in.
  • Enter these commands:
sudo bash (and then drag a file on your desktop named " BootVM sh " in terminal)
  • You will now go in the KVM screen
  • Log in as normal.
  • Download Checkra1n and open it.
    You’re finished.
It Additional notes:
  • Every time you need to jailbreak, boot back into Xubuntu and follow It Stage 3

miércoles, octubre 02, 2019

buildroot

Preparar entorno para compilar una imagen builroot:

1. Para ver las tarjetas soportadas:

make list-defconfigs

2.elegir la tarjeta que usaremos (en este caso raspi zero w):
make raspberrypi0_defconfig

3.Configuramos nuestra imagen, elegimos software, confings, etc:
make menuconfig
nota: podemos hacer un backup de la ocnfiguracion copiando el fichero generado .config

4.Siqueremos confiuurar el kernel linux antes de construir la imagen

make linux-menuconfig

5.finalmente ordenar
make

6.Montar la imagen .img generada para modificar (aplicar modificacions de shell, wifi, ssh,..):

fdisk -l imagen.img

Tendremos que fijarnos en el numero del sector de "inicio" y en donde indica: Unidades: sectores de 1 * 512 = 512 bytes Entonces para poder montar las particiones tendremos que multiplicar el "sector de inicio(start) " por las "unidades de sector", tal que asi:
2ª partición 512 * sector de inicio (start) = resultado

mount -v -o offset=resultado -t ext4 imagen.img /mnt

Una vez modificada la desmontamos:
umount /mnt

7.Grabar imagen desde la shell linux:

sudo dd bs=1M if=imagen.img of=/dev/sdx


Configurar Wifi EN LA RASPI ZERO W


1***Fichero /etc/wpa_supplicant.conf

# /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
 ssid="Argalario"
 psk="surfing75"
 key_mgmt=WPA-PSK
}


2****Fichero /etc/network/interfaces

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf


3****Fichero /etc/inittab /en este fichero se realiza un bucle que inicia los servicios de /etc/init.d

...........
# Load Wifi driver
::sysinit:/sbin/modprobe brcmfmac
# now run any rc scripts
::sysinit:/etc/init.d/rcS
.....

4*****Fichero /etc/init.d/S35wifi (despues de crearlo chmod 755 S35wifi)

#!/bin/sh
#
# Start the wifi....
#

# MODEM
#modprobe ppp_generic
#modprobe ppp_async

# WIFI
#modprobe brcmfmac
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf

exit $?

5****** Scripts para habilitar puerto 22 in/out ssh


#!/bin/sh
iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT

#!/bin/sh
iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT


nota: para que root pueda entrar por ssh hay que modificar el fichero /etc/ssh/sshd_config PermitRootLogin   yes

viernes, septiembre 20, 2019

USB Reverse Tethering No Root No ADB Android (all versions) & Windows 10

USB Reverse Tethering No Root No ADB Android (all versions) & Windows 10

This guide allows you to share the Internet connection of a Windows 10 PC with your Android device via a common USB cable that is also charging your phone. This is useful if you can not or want to use the WIFI on your smartphone and you do not want to consume traffic from your data plan. A good reason to limit the use of wireless connections on your phone is the electromagnetic pollution hitting your body. But that's another story.
The important thing about this guide is that it is not required that your phone is rooted. Then, I repeat it, all works without Rooting your precious smartphone. Unfortunately, this involves that some apps (but not the most important) require the fictitious use of the data connection at least, because you can not install Xposed modules to workaround the stupid limitations of these apps. But this is the lesser evil. Moreover this guide will also work with Android versions from Lollipop onwards.
This guide requires only the built-in Android usb tethering function and a Windows 10 PC and so it works on all Android versions without even the need to install ADB (Android Debug Bridge) on Windows. It uses the free open-source "openvpn" program for Android and Windows. The only limitation is that it only works for a single Android device at a time.
SETUP
Download "openvpn for Windows" from here or from below. Double click on the file you’ve just downloaded to start installation and confirm the Windows security messages.
Make sure all the components are selected during the installation process.
OpenVPN installation components. ESCAPE='HTML'
Click on "Install" again when a message appears as this:
TAP-Windows driver ESCAPE='HTML'
Now you can find “OpenVPN GUI” on the desktop. Right click on “OpenVPN GUI” and go to “Properties”. Go to “Compatibility” tab and make sure in Privilege Level “Run this program as administrator” is selected. Click “Apply” then “OK” and close the window.
Search "Generate a static OpenVPN key" among the installed programs (Start menu --> All apps), right-click on it and "run as adminstrator", then press OK when a black command prompt window appears.
Download the "android.ovpn" file from below:
and copy it in "C:\Program Files\OpenVPN\config".
Now Double click on "OpenVPN GUI" on your desktop to start the program.
Network Connections
Right click on Start menu Windows flag (left bottom corner on the desktop) and select "Network connections" (or if you prefer, right click on the small Monitor icon in system tray and open "Open Network and Sharing Center", then on the left of the new opened window go to "change adapter settings"). Then select the network card that you are using for connecting to Internet and right click on it and open "Properties". Go to "Sharing" tab, select "Allow other network users to connect through this computer's Internet connection" and choose under "Home networking connection" the network adapter name that corresponds to the "TAP-Windows adapter" as you can see in "Network Connections" that you get access as above.
Go to "C:\Program Files\OpenVPN\config", open the file "key.txt" and copy all text in it.
Dowload the "smart.conf" file from below, open it as text file and copy the content of "key.txt" between the last two rows "" "".
Save it and move it to your Android device memory.
Connect your Android device via usb cable to the Windows PC. Enable "USB tethering" on Android (Settings --> Wireless and Networks --> Tethering) and wait untill Windows installs drivers if you need those. Click yes on Windows request to "Allow your PC to be discoverable by other PCs and devices on this network" if it appears.
Now open "Network connections" as above. Then select the "Remote NDIS" network adapter, right click on it and open "Properties". Double click on "Internet Protocol Version 4 (TCP/IPv4)" and set IP as "192.168.42.128", Subnet mask as "255.255.255.0" and Gateway as "192.168.42.129". Click OK and exit.
Set manual IP adress. ESCAPE='HTML'
Check in "Open Network and Sharing Center" (right click on the small Monitor icon in system tray and open "Open Network and Sharing Center") under "View your active networks" that the network which corresponds to the "Remote NDIS" adapter is "private" and not "public".
Windows Networks ESCAPE='HTML'
Network sharing center ESCAPE='HTML'
If it is "public", left click on Start Menu flag (left bottom corner on the desktop), select "Settings", then "Network & Internet", then "Ethernet", select from the right column the ethernet connection that you want to change, then set to "on" the first option "Allow your PC to be discoverable by other PCs and devices on this network...".
Network & Internet
Ethernet Networks
Select right ethernet connection
Set network as private
Disconnect the USB cable.
Install from Google Play Store (or from above) the app "OpenVPN for Android" on your device. Finally open "OpenVPN for Android" and in global "settings" uncheck the option "Reconnect on network change". Then import from the top right icon the file "smart.conf" you had saved earlier. Save the new created profile and later from pencil icon go to "Routing" tab: there select "Use default Routing" in IPv4 menu and exit. Optionally create an "OpenVPN for Android" widget on your home screen that links to your profile. Finished.
RUNNING
Now, to connect your smartphone to internet via lan connection of your Windows PC just follow the following steps. Double click on "OpenVPN GUI" on your Windows desktop (make sure you run the program "as administrator" from right click if you have not already configured it as we said above). On Windows system tray, right click on the OpenVPN icon and press connect.  Finally connect your Android device via usb cable to your PC, enable "USB tethering" in "Settings --> Wireless and Networks --> Tethering" on Android, then temporarily enable your phone data connection (2G/3G/4G) and tap on your "OpenVPN for Android" widget (or on the profile name in "OpenVPN for Android" app). If you read "success" somewhere at the top (log screen), you're OK.
IMPORTANTE: dentro de los ajustes de la app OpenVPN para android hay que quitar la casilla "reconectar en cambio de red", si no la quitamos al deshabilitar datos moviles se desconecta la VPN.

You can then disable phone data connection if you use Browsers such as Chrome or many other app such as WhatsApp. Anyway some apps (as Gmail, Download etc.) check if a wireless connection (WIFI or 3G) is present at boot otherwise they will not start or work, so they require at least data connection enabled to work. Nevertheless all internet traffic is always routed over the usb connection and therefore your data plan is safe. Furthermore, for the same reason, your body is subjected to a considerably lower electromagnetic pollution. Enjoy!
OpenVPN Log ESCAPE='HTML'
OpenVPN stop and pause ESCAPE='HTML'
Note 1: this tutorial assumes that the IP address of your smartphone in USB tethering mode is 192.168.42.129, as it should be. Check this by typing "netcfg" in "android terminal" app of PlayStore and eventually change it accordingly above, together with the 192.168.42.128 address of the "Remote NDIS" interface.
Note 2: If after a smartphone (or tablet) restart the "Remote NDIS" network name changes, set the new one as "private network" again as we explained above, otherwise it will not work anymore.
Note 3: with slight modifications this guide should also work with Windows versions lower than 10.