Jump to content

spbr

Member
  • Posts

    114
  • Joined

  • Last visited

Reputation Activity

  1. Like
    spbr reacted to LogicalDrm in Excel Line Chart   
    You change scale for y axis (%) from adapted to fixed, maybe 0-100%. Right now 1 & 3 have values around 2% while 2 & 4 have values around 18%. You are using adapted scale which has only values up to 20%. Change that to 0-100% with 20% or 10% jumps and you have values almost next to each other.
  2. Agree
    spbr reacted to Tomsen in Bash Script - Printing line to file loop   
    Just make a loop where you read the sourceFile line by line.
     
    Something like:
    while IFS='' read -r line || [[ -n "$line" ]]; do echo "$line" >> "$targetFile" # Restart network # Ping # Check ping return code # Evaluate based on returned code done < "$sourceFile"  
    With a bit of research you should be able to solve it yourself in a couple of attempts.
     
  3. Like
    spbr reacted to vorticalbox in Bash Script - Defend against Brute Force Attack   
    why not just block all incoming ports except for local/trusted IP's?
  4. Like
    spbr reacted to KuJoe in Bash Script - Defend against Brute Force Attack   
    Is iptables an option for you or do you need a bash script? 
    iptables -A INPUT -p icmp -m limit --limit 1/s --limit-burst 1 -j ACCEPT  
  5. Like
    spbr reacted to Fetzie in Bash Script - Increment a variable   
    Why not something like:
     
    #!/bin/bash  sourceFile="/path/to/source/file" targetFile="/etc/network/interfaces" numLines=$(wc -l ${sourceFile}) counter=0 # exit if file is empty or does not exist, exit if (( counter >= ${numLines} || ! -f ${sourceFile} )); then echo "invalid file" exit 0 fi while [ ${counter} -le ${numLines} ]; do sed -i "${lineNumber} s/.*/wireless-key s: $(sed -n ${counter}p <<< "${sourceFile}")/" "${targetFile}" counter=$((counter + 1)) done  
    Haven't run it but it should work. Might need bit bit of tweaking to get exactly what you want.
     
  6. Like
    spbr got a reaction from randomhkkid in Tor bridges   
    obfs4 37.218.246.103:47131 E066AA51750A52C9C50868EF25CA2DD22A7E4CAB cert=F6YOUaSbjzpMojHSc8NucGZw6uYYm64zbdZGP58Lh+F0WVd4DXcPPifptMjoZ0FNR8KvOg iat-mode=0
    obfs4 194.132.209.135:45282 2431E520F57080FC67A943F3324B8990A41A7A34 cert=elzRQehME+C/JArYMYJ1vrRWaQNMuoc1K5AyMTCrgyQ37n0amFgbFPAtsdoU28lM55lKLw iat-mode=0
    obfs4 192.3.31.203:37303 B077C6F2F4D37EE2DE51F317CB9229CB331ED468 cert=TojA3sGFYAmf5qkH/W+Tqc8pu4ZLDj9QxSPaKcchwwdFNS+E46GyV1lq+aqiMY1a4B3eGw iat-mode=0
  7. Like
    spbr reacted to SirSquid in Gift Cards for Old Mobile Phones offer Launched in the UK   
    In other news phone thieft raises in the UK.
×