terça-feira, 30 de dezembro de 2014

HOW TO SEND MESSAGE BY MODEM GSM

Tested  of modem in 15/04/14 
Distro: ubuntu workstation 13.04  kernel 3.8.0-19 


apt-get install usb-modeswitch-data 
apt-get install usb-modeswitch 

Conecte the Modem and old on some seconds until that the light stay  blink. 

Now let's go to verify if stay work the device:
First go find the device inside of system:

Put:  lsusb 
Verify if the device was listed... 
See if the  device it's OK 
check if the information of MODEM GSM and how to install the drive 

Put: dmesg 
To see the configyuratin specifcy  of this device
Put: dmesg | grep GSM 
Verify if your device  USB is runing 
Type: ls /dev/ttyUSB* 

This command will find the modem for know where  ttyUSB him stay now also saty now and alson will subscribe the file  wvdial.conf. 
However him will subscribe the file with wrong information.  by this way you must change some final informations 

Put: wvdialconf /etc/wvdial.conf  

Find where ttyUSB the modem stay... 

Type: nano /etc/wvdial.conf 

Stay the file exactly Deixe ele exatamente like that : 

############################################################################### 
[Dialer Defaults] 
Init1 = ATZ 
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 
# 
Modem Type = USB Modem 
Modem =/dev/ttyUSB0 
# 
Baud = 921600 
ISDN = 0 
New PPPD = yes 
DialCommand =ATDT 
Check Def Route = on 
FlowControl = Hardware(CRTSCTS) 
Auto Reconnect = on 
Auto DNS = off 
Abort on Busy = off 
Carrier Check = off 
Abort on No Dialtone = off 

Phone=*99***1# 
Username=tim 
Password=tim 


############################################################################### 

Obs: 

OPERATORS TELECOM FROM BRAZIL:

Vivo: 
 User and pass: vivo/vivo 
  fone: *99# 
 APN: zap.vivo.com.br 
Claro: 
 User and pass: claro/claro 
 Telefone: *99***1# 
 APN: bandalarga.claro.com.br 
TIM: 
 User and pass: tim/tim 
 fone: *99# (for  3g conections) or *99***1# (for old plans with EDGE) 
 APN: tim.br 

Vivo: 
User and pass:vivo/vivo 
 fone: *99# 
APN: zap.vivo.com.br 
Claro: 
Usuário e senha: claro/claro 
 fone: *99***1# 
APN: bandalarga.claro.com.br 
TIM: 
User and pass:: tim/tim 
Telefone: *99# (for  3g conections) or *99***1#  (for old plans with EDGE) 
APN: tim.br 

 TIM: +552181138200 
Claro: +555191115300 
Vivo: +550101102010 
Oi: +550310000010 
Brt: +550160000060 

 ############################################################################ 




So, now we will put to work the  dial  wvdial 

typ: wvdial 

If every thing it's okay will appear some with  IP and DNS. 

You yet check you DNS configuration for to resolver ! 

Open another terminal for don't  stop the modem functionality. 

type: cat /etc/resolv.conf 

Check the DNS number serves first and second if stay equals. 

type:lsof -nPi | fgrep LISTEN 

Check if is every thing okay. 
 Now just navigate!!! however hown this tutorial don't work so file do that:

apt-get install gammu 

Inside  /etc/ we have:: 
gammu    gammu-config     gammu-detect gammu-identify 

type: gammu-identify 

Visualyze the moden version of firmware and vendor manufactory 

type: gammu-detect  

check which moden portappear conected  


type: gammu-config 

Set the way of port that was found how connected, on option  port  for example: 
Port /dev/ttyUSB0 
Connection (at19200) 
Model () 
Synchronize time (yes) 
Log file  (TESTE) 
Log format (text) 
Use locking () 
Gammu localisation () 

Save the file  

Now for send sms execute this command:

Echo <put your message> | gammu sendsms <ddd+localnumber> 

For to see the message received: 
gammu getallsms 



Font: 

HOW TO USE TARGZ

For compress:


tar -zcf file.tar folder or file to compress

or 

tar -zcf file.tar file1.txt file2.jpg file3.xml 

for unzip: 

tar -xvf file.tar 


gzip -9 file.tar 
For unzip, first command above wil unzip  format .tar.gz and the second unzip format .tar: 


tar -zxvf file.tar 

terça-feira, 23 de dezembro de 2014

NESSUS INSTALL EVALUATION


Download nessus evaluation by
http://www.tenable.com/products/nessus/select-your-operating-system

After download, execute dpkg -i <package name.deb>

start the service by /etc/init.d/nessusd start
after the service was started, try to access by web:
https://yourip:8834

Start the configuration do that:
create account and passowrd;
add evaluation  key;
after confirm and wait to update and inicializing the instalation of componets.

segunda-feira, 22 de dezembro de 2014

T50 INSTALL



http://downloads.sourceforge.net/project/t50/t50-5.4.1/t50-5.4.1.tar.gz

#tar -xvf t50-5.4.1.tar.gz
#cd t50-5.4.1
#make -W Makefile
#chmod + t50
#./t50 <IP> --flood --turbo -S



source: https://launchpad.net/~cybersec/+archive/ubuntu/chaos-ppa/+build/7556167

REMOVE SOPHOS ENDPOINT FOR WINDOWS TOO EASY

Tested in enviroment ad windows server 2012 r2 with console manager 5.2, and client's workstation 8.1 e 7 x64, by this way http://www.sophos.com/en-us/support/knowledgebase/109668.aspx  just resolved with successful when is do tha in this order to remove:

1.Sophos Patch Agent
2.Sophos Compliance Agent
3.Sophos Remote Management System
4.Sophos Client Firewall
5.Sophos Anti-Virus
6.Sophos AutoUpdate


Normaly the keys you can find here : 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
Note: On a 64-bit computer you will need to check both the key above and the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Save this script on bat file (remove.bat) and runing
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::  script model::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
net stop "Sophos AutoUpdate Service"
taskkill /im ManagementAgentNT.exe /f
taskkill /im RouterNT.exe /f
taskkill /im SavService.exe /f
taskkill /im SAVAdminService.exe /f 
taskkill /im swc_service.exe /f 
taskkill /im swi_service.exe /f 
taskkill /im SCFService.exe /f 
taskkill /im SCFManager.exe /f 
taskkill /im spa.exe /f 
taskkill /im ALsvc.exe /f
taskkill /im ALMon.exe /f
taskkill /im SavMain.EXE /f

Timeout /t 5
MsiExec.exe /X{2FB80981-C6B6-4FCA-BC65-24437DF4C8CB} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{FED1005D-CBC8-45D5-A288-FFC7BB304121} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{A805FB2A-A844-4cba-8088-CA64087D59E1} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL 
Timeout /t 5
MsiExec.exe /X{D929B3B5-56C6-46CC-B3A3-A1A784CBB8E4} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{D924231F-D02D-4E0B-B511-CC4A0E3ED547} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
MsiExec.exe /X{EC6B53C2-A961-4420-A4B0-F9D78DDC4EE6} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL
Timeout /t 5
MsiExec.exe /X{9ACB414D-9347-40B6-A453-5EFB2DB59DFA} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL
Timeout /t 5
MsiExec.exe /X {196467F1-C11F-4F76-858B-5812ADC83B94} /qn REBOOT=SUPPRESS /passive >NUL 2>NUL  
Timeout /t 5
rmdir /S /Q C:\Program Files (x86)\Sophos\
Timeout /t 5
rmdir /S /Q C:\Program Files\Sophos\
Timeout /t 5
rmdir /S /Q C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Sophos
shutdown -a

echo %COMPUTERNAME% > "c:\%COMPUTERNAME%.log"
exit

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::end script::::::::::::::::::::::::::::::::::::::::::::::::