Wednesday, August 4, 2021

resetare parolă hikvision

     Salut, recent am avut de resetat o parolă pentru un dvr hikvision, din acela cu firmware mai vechi. Nu se poate absolut cu nici o metodă în afară de cea de mai jos, nici cu aplicația hikconnect, cu nimic, deoarece are firmware de tip vechi.  Uitați de scoaterea bateriei cmos sau coduri luate de pe diverse situri, nu are rost să pierdeți vremea cu porcării.

    Se instalează SADP pe laptop sau pc, se leagă dvr-ul si pc-ul in aceeași rețea, se caută dispozitivul în rețea, se apasă legătura unde scrie "forgot password". Se exportă fișierul xml sau codul QR, cum vreți.

   Se face o poză a etichetei de pe spatele aparatului.

   Se  trimit cele 2 fișiere (xml + poza) la adresa principală de contact hikvision, support arond hikvision punct com. Atenție, mailul din europa - support.eu@hikvision - nu răspunde, nu pare a fi funcțional, mie nu mi-a răspuns nici după 3 zile,  trimiteți din prima la adresa principală.

   Va trebui să știți să scrieți mesajul de bază în engleză. Eu n-am mai specificat din ce regiune sunt sau de unde am cumpărat aparatul. Doar cele 2 fișiere atașate plus mesajul respectuos in engleză în care ceream resetarea parolei.

   Cam după o zi vine răspunsul plus un fișier xml atașat pe care îl încărcați tot cu SADP pe DVR. Odată cu asta nu uitați să specificați noua parolă.  Parola veche este resetată instant pentru utilizatorul admin și este înlocuită cu cea nouă.

Baftă!

Saturday, May 15, 2021

Climate change

     How funny is so called "climate change" problem! 

They are collecting, measuring, plotting and doctoring some 20-30 years of data, or even 50 years if they are courageous enough and then they are crying and screaming catastrophe.

Poor me, i was thinking that when you are talking about climate you are considering some thousands of years at least. 20 years or even a hundred years is about the Weather - not the climate.


And, of course, over the history of earth the climate was ever changing continuosly, this is not some stationary phenomenom who never changes! It's NORMAL to change. 


The same about co2 (carbon dioxide) level in atmosphere. Some millions years ago this was about ten or even hundred times than actual levels, and yet, life was flourishing back then more than now. 

All you can say about co2 levels right now is that they are too low! If they would be lower than this then you will have NO crops at all, no vegetation, no plants, no forests at all! 

 

Plus, as i know, NOBODY  has ever produced  a really scientific proof that co2 is the main component involved in climate change or how is afecting the climate. The main factor here is the Sun. Other factors are geological, marines, astronomicals etc etc...  There is nobody and will never be, there will be forever an impossible task to predict the life and the energy flow of an entire planet, at least for more ten tousands years from now.... and maybe then the scrientists will be more honest..... 


For now, what is for sure is this illusion of climate change is made off and is used for taxation,  for squeezing more money from tax payers, and you guess where that money are heading.... All is a big hypocrite lie.....



 

 

Thursday, March 25, 2021

mainstream media is worth something ?

 Is it worthy to read/watch mainstream media?

No. As i said, everyone watching any form of tv, everyone listening to main media fake / fabricated / doctored so called "news" is a flat brain dead walking knuckledragging monkey zombie. 

Best news and world perspective you will find is that aquired with your own eyes/ears/judgement and using common sense - if you have such a thing, or if you were lucky to have good teachers to teach you how to think with your own brain and  the real values in life (not teachers that indoctrinate you with hate, communism and stupid Lenin/Marx like left ideas).

Can u live w/out a tv or radio? Yes, and the quality of your life/mental health will improve dramatically! 

 

Tuesday, March 9, 2021

tv is for idiots and brain deads

     Can you survive without watching tv at all?

    Yes. And you will feel so good, so relaxed! No stupid fake news, no stupid movies and shows!

    I haven't watched tv for 5 years now! No news, no shows, no sports, no nothing! In fact, i don't even have a tv set! I feel very good, and i do not have any wish of watching anything on tv!

    Everything i want to watch i find on the internet! More important, i watch what i want to watch and when i want - not what others wants for me to watch. News, sports, movies, shows, you name it, everything is on the internet now. If you search, you will find! And all for free!

 

    The stupidity and retardness of today tv is incredible! I think only zombies, retarded or brain washed people could appreciate today state of tv industry.

 

    If you are a zombie right now, please don't be! Throw away that stupid box and regain your mental sanity and equilibrium, regain your brain!

    By the way, please close now your facebook or twitter etc account! Those are no good at all, nothing good comes from there! You do not need any stupid account on fb or twitter. 

Saturday, March 6, 2021

Hollywood today

     The only good movie industry in USA, as of today, is porn movie  industry.

Hollywood is a gizmo, a brain dead washed horde. Nothing good comes from there.

It is what it is, a total shit!

Thursday, February 11, 2021

asterisk pjsip extension conf for sending offline messages

 Hy!

Hard to find some good documentation about queuing offline voip/im text messages in asterisk voip software.

But, even if that was just a short hobby, i searched and i searched .... and i found one script using outgoing folder in /var/spool/asterisk and .call files.

I grabbed the script and i modified according to my software and environment.

This is a very basic script and such is not intended for complex scenarios, but is neat and do the job.

The script, together with some snippets from my pjsip.conf file and extensions.conf file are distributed and published here AS IS -  whitout any responsability and guarantee. 

If the message was sent successfuly, then you will receive a short message informing you about that. Of course, your corespondent will receive the message.


The script verifies if the number dialed exists using pjsip cli command - pjsip list auths.

I do not know if that command is listing ALL the users(extensions) as defined in pjsip.conf, or merely is listing all the users who are logged in at a certain time. And i do not care! :) 

If the number (extension) doesn't exist then you will receive a message saying that.

 If your corespondent is not online, then you will receive a short informing message.

The message will be sent to queue. The script will retry to transmit the message for about 1 day. This interval is editable. The script will do his job even for multiple failed messages, but i do not know if will keep the order of messages when the client goes online again.

 

If your queued message has been transmitted successfuly, then you will receive a short message informing you about that.

Bellow you will find all the lines. Atention, blogger has no "code" edit, so be aware of possible line breaks - those might render the script useless if you just copy-paste and do not perform some basic edit on it!

 #!/bin/bash
# v0.2
# copyleft Sanjay Willie sanjayws@gmail.com
# SCRIPT PURPOSE: GENERATE SMS OFFLINE QUEUE
# GEN INFO: Change variables sections
###########################################

######            NOTE  ###############################
# above script was modified by l u c i a n _ g e   0 u t l 0 0 k  and you know what is following.......
# for lubuntu 18.04, asterisk 18 compiled from source
# attention: this script do not cover every scenario
# for your needs it might be necessary to modify again this script
# this script is free and is distributed AS IS, with absolutely no guaranty and
# no responsabillity involved from creator
# this script is not intended for production scenarios but is merely an example
# i'm, but no mean, an expert in voip, this was just a 2 days hobby
# i must say, the documentation regarding this subject was awfully hard to find
# and fuck every knukledragger and monkey washed brain inbreed  out there on #net who doesn't know anything else but "search google"!!!!!!! this is not an #answer, nor a constructive discussion, you filthy big poo inbreed!
# fuck you, first i do not use google, second - you are an inbreed motherfucker
# communist. if you are so smart, why don't you answer and post something
# constructive, you braind dead knuckledragger inbreed monkey?

####################################################
maxretry=1000
retryint=60
# aprox. 1 day for retrying to transmit
ERRORCODE=0
#astbin='which asterisk' # no need of extra here, will use absolute path /usr/sbin/asterisk
# yes, this is a hardcoded command path. atention here, use

#your own environment path.
myrandom=$[ ( $RANDOM % 1000 )  + 1 ]

#random number for naming the queued .call files

echo "begin"

#exista=$(/usr/sbin/asterisk -rx pjsip show auths | grep -c '903')
#echo 'exista'
#echo $exista, too lazy to use bash debugger
#
function error_exit(){
      echo "error: $1"      
      exit
}

source=$1
dest=$2
message=$3
# arguments : source of message, destination of message and message body
# those are c U ming from extension.conf
#source is like pjsip:901, destination is like pjsip:903@somedomain.com

##################### ATTENTION #########################
##################   ATTENTION

#                A T T E N T I O N


# attention: message body is not filtered, need some filtering
# NOT TESTED
# NOT TESTED
# NOT TESTED, NOT IMPLEMENTED
# RIGHT NOW IS TESTED WITH MESSAGES WHITOUT ANY SPECIAL CHAR
# MESSAGE BODY NEED SOME BASIC FILTERING
#################################
#echo $source
#echo $dest
#echo $message
#lazy bastard, why don't u use debbuger?!
if [[ "$source" == "" ]]; then
    error_exit "message has no source"
fi
if [[ "$dest" == "" ]]; then
    error_exit "message has nodestination"
fi
if [[ "$message" == "" ]]; then
    error_exit "message has no body"
fi
#

# Check to see if pjsip extension is in auths list
#if is not, then the number is wrong - some typo
#destination_number='echo "$dest"' | cut -d @ -f1 | cut -d : -f2
 # example: from pjsip:901@somedomain.com we get 901 (extension number)
 destination_number=$(echo $dest | cut -d\@ -f1 | cut -d\: -f2)
 #echo "destinatie"
 #echo $destination_number

###################################### 1 wrong number

function destination_exist(){
    /usr/sbin/asterisk -rx 'pjsip show auths' | grep -c $destination_number

}

ifexist=$(destination_exist)
#echo "ifexist"
#echo $ifexist


 if [[ "$ifexist" == "0" ]]; then
    echo "Destination does not exist in dialplan"
    #send a message back to inform that destination does not exist in server dialplan
    filename="$destination_number-$myrandom.call"

#attention, random file name is not random enough, need more

    number=$(echo $source | cut -d\: -f2)

#atention here, the following lines in .call file must be set w/out any spaces

#at the beginning of the new lines
    echo "Channel: Local/$number@app-fakeanswer
CallerID: $source
Maxretries: $maxretry
RetryTime: $retryint
Context: mess
Extension: $destination_number
Priority: 1
Set: MESSAGE(body)='error the dialed number does not exist in server dialplan'
Set: MESSAGE(to)=$source
Set: MESSAGE(from)=MessageCenter
Set: INQUEUE=1 " | tee /var/spool/asterisk/outgoing/$filename
          error_exit "error: destination number does not exist in auths list for pjsip"
fi


############################################################### 1





#################################### 2 connectivity loss
#
#######################  A T E N T I O N
# Interesting situation:
# device is disconnected but in CLI > "pjsip show contacts" command output  is available
#i guess this is because time expire of registration or something similar
#like a session expire (qualify_frequency?)
# in this case the message is lost, unless is there
#some sort of check if the device is REALLY online BEFORE sending the message

########### ATENTION  

#sometimes the device goes offline for some time
#this is the second scenario
#maybe are more possibillities but for now
#this is it

#so, device is offline and we know that already
#SEND THE MESSAGE STRAIGHT TO QUEUE


source=$(echo $source | cut -d\: -f2)

echo "Channel: Local/$destination_number@app-fakeanswer
CallerID: $source
Maxretries: $maxretry
RetryTime: $retryint
Context: mesajetext
Extension: $destination_number
Priority: 1
Set: MESSAGE(body)=$message
Set: MESSAGE(to)=$dest
Set: MESSAGE(from)=$source
Set: INQUEUE=1 "


filename="$destination_number-$myrandom.call"
echo "Channel: Local/$destination_number@app-fakeanswer
CallerID: $source
Maxretries: $maxretry
RetryTime: $retryint
Context: mess
Extension: $destination_number
Priority: 1
Set: MESSAGE(body)=$message
Set: MESSAGE(to)=pjsip:$destination_number
Set: MESSAGE(from)=$source
Set: INQUEUE=1 " | tee /var/spool/asterisk/outgoing/$filename

exit 


this was the script (in folder /var/lib/asterisk/agi-bin).

Bellow you will find some fragments from pjsip.conf and extensions.conf matched with the above script. if you do not match what is needed, the whole thing will be useless.

[app-fakeanswer]
exten => _X.,1,NoCDR
exten => _X.,n,Set(DESTDEV=${EXTEN})
exten => _X.,n,Set(THISDEVSTATE=${DEVICE_STATE(PJSIP/${DESTDEV})})
exten => _X.,n,GotoIf($[“${THISDEVSTATE}” = “UNAVAILABLE”]?hang)
exten => _X.,n,GotoIf($[“${THISDEVSTATE}” = “UNKNOWN”]?hang)
exten => _X.,n,Answer
exten => _X.,n,Hangup()
exten => _X.,n(hang),Hangup()


[mess]
exten => _X.,1,Set(DEVSTATE=${DEVICE_STATE(PJSIP/${EXTEN})})
same => n,GotoIf($["${DEVSTATE}" = "UNAVAILABLE"]?errormsg)
same => n,GotoIf($["${DEVSTATE}" = "INVALID"]?errormsg)
same => n,GotoIf($["${DEVSTATE}" = "UNKNOWN"]?errormsg)
same => n,MessageSend(pjsip:${EXTEN},${MESSAGE(from)})
same => n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
same => n,GotoIf($[“${MESSAGE_SEND_STATUS}” = “SUCCESS”]?sendok)
same => n,Hangup()
same => n(sendok),NoOp(Sending ok message transmitted to user)
same => n,Set(MESAJORIGINAL=${MESSAGE(body)})
same => n,Set(MESSAGE(body)=”[${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has been sent.”)
same => n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
same => n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
same => n,Set(EU=${CUT(ACTUALFROM,:,2)})
same => n,MessageSend(pjsip:${EU},MessageCenter)
same => n,Hangup()
same => n(errormsg),NoOp(Sending error to user)
same => n,Set(MESAJORIGINAL=${MESSAGE(body)})
same => n,Set(MESSAGE(body)=”[${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Sending when available”)
same => n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
same => n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
same => n,Set(EU=${CUT(ACTUALFROM,:,2)})
same => n,MessageSend(pjsip:${EU},MessageCenter)
same => n,GotoIf($[“${INQUEUE}” != “1”]?startq)
same => n,Hangup()
 exten => _X.,n(startq),NoOp(Queueing messaging for offline)
 same => n,Set(MSGTIME=${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)})
 same => n,Set(SRC=pjsip:${EU})
 same => n,Set(DST=${MESSAGE(to)})
 same => n,Set(MSG=${MESAJORIGINAL})
 same => n,SYSTEM(/var/lib/asterisk/agi-bin/sendlater.sh  "${SRC}" "${DST}" "${MSG}")
 same => n,Hangup()

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

bellow is a fragment from pjsip.conf
[901]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=600
qualify_timeout=6.0

[901]
type=auth
auth_type=userpass
username=901
password=somepassword
 
[901]
type=endpoint
aors=901
auth=901
callerid="xxx" <901>
context=internal
disallow=all
allow=g722
allow=ulaw
allow=alaw
allow=vp8
;dtmf_mode=rfc4733

;above line with dtmf will break some mobile clients, i guess dtmf type need to ;match those types accepted by the client software

;media_encryption=sdes ;
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
;transport=transport-tls
message_context=mess
allow_subscribe=yes
subscribe_context=subscribe


I hope it will be useful someday to someone! Do not forget, this was just for fun, a short 2 days hobby. Do not expect miracles, but do expect something functioning and useful for a start!

 

 

 

Friday, December 11, 2020

proiect WiFiCampus Telekom

     Escrocii ăștia de la Telekom nu știu ce să mai facă ca să păcălească idioții de la stat, că pe oamenii obișnuiți nu prea mai pot să-i ducă cu zăhărelul - s-au lămurit toți ce proastă e firma asta.

    Ultima găselniță este implementarea unui proiect de wifi gratuit în școli - numit WiFICampus. Vorba vine, gratuit, pe autoritățile statului le costă enorm escrocheria asta.

    Semnalul wifi este prost, viteza este mică, nu vă lăsați păcăliți, aparatura este chinezarie de proasta calitate.

    La fel au făcut cu wifi-ul gratuit oferit în parcuri, au câștigat licitația primăriei, dracu știe cum, și au făcut un rahat de rețea cu semnal slab, abia poți să prinzi wifi-ul ăsta gratuit la maxim 50m de emițător. Peste 50m distanță față de emițător rețeaua este inutilizabilă. Din intamplare am dat pe youtube peste un clip cu un electronist din Anglia care a desfacut o chinezarie din asta folosita de Telekom, antenele de tip patch sunt proiectate prost de cacatii de chinezi si au randament de 20-30% maxim.

    Rahați de Telekom, cu chinezariile lor cu tot.

    Nu că Orange sau Vodafone ar fi mai buni. Ăia sunt și mai mari escroci, mă și mir că mai sunt proști care stau în rețelele lor mobile de rahat, cu niște prețuri pt. convorbiri enorme și prețuri pt acces internet si mai enorme. Am fost aproape socat sa vad ca un prost de la Orange, Telekom sau Vodafone plateste de 15-30 ori mai mult pe minut (sau pt. date mobile) decat platesc eu, uneori chiar de 60 de ori mai mult! Cum e posibil sa fi atat de prost si de idiot sau retardat mintal incat sa mai stai la firmele astea de cacat, platind de 30-60 de ori mai mult decat face real?!

      Din cate am citit pe net, proiectul asta WiFiCampus prevede net wifi pentru 4500 scoli. A cata oara oferiti mai net? Pana acum au fost atatea proiecte cu net pt. scoli incat fiecare scoala are pe hartie net de la cel putin 4-5 furnizori si ar trebui sa aiba 4-5 retele deja!

    Nu e nimic altceva decat o noua spalare de bani, gen madam Udrea cu licentele, numai ca acum e cu wifi-ul.