DDDDDD
DDDDDD
Northosaur Dildo
{
:local name [/tool user-manager user get [find where active=yes] username];
:if ([:len [/tool user-manager session find where active=yes and
username=$name]]=0) do={
:log warning "$name"; }}
:do {
:foreach i in=[/tool user-manager user find where active=yes ] do={
:local name [/tool user-manager user get $i username];
:log warning "$name";}}
:do {
:foreach i in=[/tool user-manager user find where active=yes ] do={
:local name [/tool user-manager user get $i username];
:if ([:len [/tool user-manager session find where active=yes and
username=$name]]=0) do={
:log warning "$name";}}}
dd if="stock_firmware.bin" of="tp_recovery.bin" bs=512 skip=1
dd if=US_F6V4.0QCA_V03.03.01.23_multi_TDE01.bin
of=US_F6V4.0QCA_V03.03.01.23_multi_TDE01_bb.bin skip=18 bs=512
dd if = "E:\flash\801\801\v6\stock_firmware.bin" of = "E:\flash\801\801\v6\
tlwr840n-v4-stock.bin" bs = 512 skip = 1
dd if=E:\flash\801\801\v6\stock_firmware.bin of=E:\flash\801\801\v6\tp_recovery.bin
bs = 512 skip = 1
:do {
:local dslline 9;
:local dslintfcname WAN;
:local lnr 0;
:local lnrs 0;
/ip firewall mangle remove [find where !dynamic and comment!=1 ];
/ip route remove [find where !dynamic and comment!=1 and comment!="Online1100"];
:for i from 1 to $dslline do={
:if ([:len [/interface pppoe-client find where interface="$dslintfcname$i" and
disabled=no and running]]!=0) do={
:set lnrs ($lnrs+1) }}
:for i from 1 to $lnrs do={
/ip firewall mangle
add action=mark-routing chain=prerouting nth=("$lnrs" . "," . "$i") new-routing-
mark="LINESS_$i" dst-address-list=!"StarLink-Address-List" dst-address-type=!local
passthrough=yes src-address-list=Out dst-address=!"149.154.167.0/24"
}
:set lnr 0;
:for i from 1 to $dslline do={
:if ([:len [/interface pppoe-client find where interface="$dslintfcname$i" and
disabled=no and running]]!=0) do={
:set lnr ($lnr+1);
:local nams [/interface pppoe-client get [find interface="$dslintfcname$i"] name ]
/ip route
add distance=1 gateway=$nams routing-mark="LINESS_$lnr" check-gateway=ping}}} on-
error={}
:do {
:local name "";
:foreach i in=[/ip hotspot find where interface ~ "Vlan" ] do={
:set name [/ip hotspot get $i interface ];
:log warning "$name";
/ip hotspot set $i name=$name;}}
:do {
:global name
:global sums
:global bytein
:global byteout
:global limitdown
:global limitupt
:global uptme
:global nmb1
:global nmb2
:global nmb3 0
:global nmb4
:global x
:global comment
:global dash
:foreach i in=[/ip hotspot user find where disabled=no ] do={
:set comment [/ip hotspot user get $i comment];
:if ($comment != "") do={
:set dash [ :find $comment "_" ];
:if ($dash>"0") do={
:set name [/ip hotspot user get $i name];
:set uptme [/ip hotspot user get $i uptime];
:set bytein [/ip hotspot user get $i bytes-in];
:set byteout [/ip hotspot user get $i bytes-out];
:set limitdown [/ip hotspot user get $i limit-bytes-total];
:set limitupt [/ip hotspot user get $i limit-uptime];
:set sums ($bytein+$byteout);
:if (( $sums >= $limitdown ) || ( $uptme >= $limitupt )) do={
/ip hotspot user disable $i
:set nmb3 ($nmb3+1);
:log warning "Expire with time or data__$name_$x--$uptme"
:if ( $sums >= $limitdown ) do={
:set x ($sums/1048576);
:log warning "Expire with [email protected]"
:do {
/ip hotspot user set $i email="[email protected]"
} on-error={}}
:if ( $uptme >= $limitupt ) do={
:local hh [:pick $uptme 0 2 ];
:local mm [:pick $uptme 3 5 ];
:local ss [:pick $uptme 6 8 ];
:log warning "Expire with [email protected]"
:do {
/ip hotspot user set $i email="[email protected]"
} on-error={}
/ip hotspot active remove [find user=$name];}} else={
:set nmb1 [:pick $comment 0 3 ];
:set nmb2 [:pick $comment 4 6 ];
:local date [:pick [/system clock get date] 4 6];
:local month [:pick [/system clock get date] 0 3];
:set nmb4 ($nmb2+3);
:if (($date>nmb4) and ($month=nmb1)) do={
:set nmb3 ($nmb3+1);
:local y ($date-nmb2);
:log warning "first login [email protected]"
/ip hotspot user disable $i
:do {
/ip hotspot user set $i email="[email protected]"
} on-error={}}
:if ($month!=nmb1) do={
:local z ((31-$nmb2)+$date);
:log warning "[email protected]"
:log warning "[email protected]"
:if ($z>6) do={
/ip hotspot user disable $i
:do {
/ip hotspot user set $i email="[email protected]"
} on-error={}
:set nmb3 ($nmb3+1);
}
}
}
}
}
}
/system script set Expire_All comment=$nmb3
} on-error={}
:do {
:global name
:global sums
:global bytein
:global byteout
:global limitdown
:global limitupt
:global uptme
:global nmb1
:global nmb2
:global nmb3 0
:global nmb4
:global x
:global comment
:global dash
:foreach i in=[/ip hotspot user find where disabled=no and profile=usermanager ]
do={
:set comment [/ip hotspot user get $i comment];
:if ($comment != "") do={
:set dash [ :find $comment "_" ];
:if ($dash>"0") do={
:set name [/ip hotspot user get $i name];
:set uptme [/ip hotspot user get $i uptime];
:set bytein [/ip hotspot user get $i bytes-in];
:set byteout [/ip hotspot user get $i bytes-out];
:set limitdown [/ip hotspot user get $i limit-bytes-total];
:set limitupt [/ip hotspot user get $i limit-uptime];
:set sums ($bytein+$byteout);
:if (( $sums >= $limitdown ) || ( $uptme >= $limitupt )) do={
:do {
/ip hotspot user disable $i;
/ip hotspot active remove [find user=$name];
/tool user-manager disable [find username=$name];} on-error={}
:set nmb3 ($nmb3+1);
:log warning "Expire with time or data__$name_$x--$uptme";
:if ( $sums >= $limitdown ) do={
:do {
:set x ($sums/1048576);
:log warning "Expire with [email protected]"
/ip hotspot user set $i email="[email protected]"
} on-error={}}
:if ( $uptme >= $limitupt ) do={
:do {
:local hh [:pick $uptme 0 2 ];
:local mm [:pick $uptme 3 5 ];
:local ss [:pick $uptme 6 8 ];
:log warning "Expire with [email protected]"
/ip hotspot user set $i email="[email protected]"
} on-error={}
/ip hotspot active remove [find user=$name];}} else={
:set nmb1 [:pick $comment 0 3 ];
:set nmb2 [:pick $comment 4 6 ];
:local date [:pick [/system clock get date] 4 6];
:local month [:pick [/system clock get date] 0 3];
:set nmb4 ($nmb2+3);
:if (($date>nmb4) and ($month=nmb1)) do={
:do {
:set nmb3 ($nmb3+1);
:local y ($date-nmb2);
:log warning "first login [email protected]"
/ip hotspot user disable $i
/ip hotspot user set $i email="[email protected]"
} on-error={}}
:if ($month!=nmb1) do={
:local z ((31-$nmb2)+$date);
:log warning "[email protected]"
:log warning "[email protected]"
:if ($z>6) do={
:do {
/ip hotspot user disable $i
/ip hotspot user set $i email="[email protected]"
} on-error={}
:set nmb3 ($nmb3+1);
}
}
}
}
}
}
/system script set Expire_All comment=$nmb3
} on-error={}
{
:local xy $user;
:global baki;
:global lmtuptm;
:local date [ /system clock get date ];
:local time [ /system clock get time ];
:foreach i in=[/ip hotspot active find user=$xy] do={
:set baki [/ip hotspot active get $i limit-bytes-total];
:set lmtuptm [/ip hotspot active get $i session-time-left];
:if ([:len [/ip hotspot user find name=$xy]]=0) do={
/ip hotspot user
add disabled=no limit-bytes-total=$baki limit-uptime=$lmtuptm name=$xy
email="[email protected]" password=$xy profile="usermanager" comment="$date-$time_$date-
$time" } else={}
#/tool user-manager user disable [find where username=$xy ];
/ip hotspot active remove [find user=$xy]; }}
Regionl>>>330
Global>>>>863.33
Standard>>220
MOBILE PRIORITY - 50GB>>1113.6
PRIORITY - 1TB>>933.33
MOBILE - REGIONAL
Use Starlink at any location on land in your continent with best effort service.
Pause and un-pause at any time. All services will be best effort and are not
permitted for use on the ocean. Metered Mobile Priority data, with high-speed,
ocean access, can be purchased by the GB on this plan. Please note: by switching to
a Mobile plan, you may not be able to change back to Standard at your service
address.
ACTIVATE ON MOBILE
REGIONAL -
STANDARD
Standard service for residential customers at one location.
ACTIVATE ON STANDARD
MOBILE - GLOBAL
Use Starlink at any location on land across the globe with active service coverage.
Pause and un-pause at any time. Service will be deprioritized behind Standard and
Priority customers and can result in slower speeds during times of peak usage, and
use is not permitted for use on the ocean. Metered Mobile Priority data, with high-
speed, ocean access, can be purchased by the GB on this plan. By switching to a
mobile plan, you may not be able to change back to the Standard plan at your
address.
ACTIVATE ON MOBILE
GLOBAL -
MOBILE PRIORITY - 50GB
Use Starlink on the ocean or land across the globe with network priority and faster
speeds. In motion use supported with approved hardware, see Starlink
Specifications. After using Mobile Priority data, continue receiving unlimited
Mobile data on land anywhere Starlink has service globally. By switching to a
mobile plan, you may not be able to change back to a fixed plan at your address.
Use on the ocean or in motion is dependent on country authorization.