Ecoer Logo
huti

@huti

25

humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!

hive.blog/@huti
VOTING POWER100.00%
DOWNVOTE POWER100.00%
RESOURCE CREDITS100.00%
REPUTATION PROGRESS0.00%
Net Worth
0.004USD
HIVE
0.000HIVE
HBD
0.000HBD
Own HP
0.010HP

Detailed Balance

HIVE
balance
0.000HIVE
market_balance
0.000HIVE
savings_balance
0.000HIVE
reward_hive_balance
0.000HIVE
HIVE POWER
Own HP
0.010HP
Delegated Out
0.000HP
Delegation In
0.000HP
Effective Power
0.010HP
Reward HP (pending)
0.000HP
HBD
hbd_balance
0.000HBD
hbd_conversions
0.000HBD
hbd_market_balance
0.000HBD
savings_hbd_balance
0.000HBD
reward_hbd_balance
0.000HBD
{
  "balance": "0.000 HIVE",
  "savings_balance": "0.000 HIVE",
  "reward_hive_balance": "0.000 HIVE",
  "vesting_shares": "15.926586 VESTS",
  "delegated_vesting_shares": "0.000000 VESTS",
  "received_vesting_shares": "0.000000 VESTS",
  "hbd_balance": "0.000 HBD",
  "savings_hbd_balance": "0.000 HBD",
  "reward_hbd_balance": "0.000 HBD"
}

Account Info

namehuti
id717601
rank0
reputation0
created2018-02-05T10:11:30
recovery_accountsteem
proxyNone
invited_bynull
post_count754
comment_count0
lifetime_vote_count0
witnesses_voted_for0
last_post2019-06-11T23:43:39
last_root_post2019-06-11T23:43:39
last_vote_time2019-06-11T23:45:00
proxied_vsf_votes0, 0, 0, 0
can_vote1
voting_power0
delayed_votesNone
governance_vote_expiration_ts1969-12-31T23:59:59
balance0.000 HIVE
savings_balance0.000 HIVE
hbd_balance0.000 HBD
savings_hbd_balance0.000 HBD
vesting_shares15.926586 VESTS
delegated_vesting_shares0.000000 VESTS
received_vesting_shares0.000000 VESTS
reward_vesting_balance0.000000 VESTS
vesting_balance0.000 HIVE
vesting_withdraw_rate0.000000 VESTS
next_vesting_withdrawal1969-12-31T23:59:59
withdrawn0
to_withdraw0
withdraw_routes0
savings_withdraw_requests0
last_account_recovery1970-01-01T00:00:00
reset_accountnull
last_owner_update1970-01-01T00:00:00
last_account_update2018-04-09T02:51:00
minedNo
hbd_seconds604,088,799
hbd_last_interest_payment2019-06-02T10:10:42
savings_hbd_last_interest_payment1970-01-01T00:00:00
{
  "id": 717601,
  "name": "huti",
  "owner": {
    "weight_threshold": 1,
    "account_auths": [],
    "key_auths": [
      [
        "STM7gWoLHy5FUKc3gdbEkUzKmK7bJnWQNxQLxwvDtnu8t2XifgB2z",
        1
      ]
    ]
  },
  "active": {
    "weight_threshold": 1,
    "account_auths": [],
    "key_auths": [
      [
        "STM7EwbwkzW1QXn5wykAnBjiRunr6VLjJFQzw889xRSsFwta9WdvJ",
        1
      ]
    ]
  },
  "posting": {
    "weight_threshold": 1,
    "account_auths": [
      [
        "dtube.app",
        1
      ]
    ],
    "key_auths": [
      [
        "STM8GngvsHBnNgeEAbCmcGzhbpGZxFCbNoHcxSueghdPUm2B2HuEN",
        1
      ]
    ]
  },
  "memo_key": "STM6bdmAeo9mWQkfaBs51npqmBkxRo7GKrwSKJwRkWr6ynWPREDoG",
  "json_metadata": "{\"profile\":{\"cover_image\":\"https://img.esteem.ws/lmmb1ndqfh.jpg\",\"profile_image\":\"https://img.esteem.ws/rswxafcygt.jpg\",\"name\":\"huti\",\"about\":\"humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!\",\"location\":\"seongho\"}}",
  "posting_json_metadata": "{\"profile\":{\"cover_image\":\"https://img.esteem.ws/lmmb1ndqfh.jpg\",\"profile_image\":\"https://img.esteem.ws/rswxafcygt.jpg\",\"name\":\"huti\",\"about\":\"humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!\",\"location\":\"seongho\"}}",
  "proxy": "",
  "previous_owner_update": "1970-01-01T00:00:00",
  "last_owner_update": "1970-01-01T00:00:00",
  "last_account_update": "2018-04-09T02:51:00",
  "created": "2018-02-05T10:11:30",
  "mined": false,
  "recovery_account": "steem",
  "last_account_recovery": "1970-01-01T00:00:00",
  "reset_account": "null",
  "comment_count": 0,
  "lifetime_vote_count": 0,
  "post_count": 754,
  "can_vote": true,
  "voting_manabar": {
    "current_mana": 638357561593,
    "last_update_time": 1560992976
  },
  "downvote_manabar": {
    "current_mana": 0,
    "last_update_time": 1517825487
  },
  "voting_power": 0,
  "balance": "0.000 HIVE",
  "savings_balance": "0.000 HIVE",
  "hbd_balance": "0.000 HBD",
  "hbd_seconds": "604088799",
  "hbd_seconds_last_update": "2019-06-22T02:41:18",
  "hbd_last_interest_payment": "2019-06-02T10:10:42",
  "savings_hbd_balance": "0.000 HBD",
  "savings_hbd_seconds": "0",
  "savings_hbd_seconds_last_update": "1970-01-01T00:00:00",
  "savings_hbd_last_interest_payment": "1970-01-01T00:00:00",
  "savings_withdraw_requests": 0,
  "reward_hbd_balance": "0.000 HBD",
  "reward_hive_balance": "0.000 HIVE",
  "reward_vesting_balance": "0.000000 VESTS",
  "reward_vesting_hive": "0.000 HIVE",
  "vesting_shares": "15.926586 VESTS",
  "delegated_vesting_shares": "0.000000 VESTS",
  "received_vesting_shares": "0.000000 VESTS",
  "vesting_withdraw_rate": "0.000000 VESTS",
  "post_voting_power": "15.926586 VESTS",
  "next_vesting_withdrawal": "1969-12-31T23:59:59",
  "withdrawn": 0,
  "to_withdraw": 0,
  "withdraw_routes": 0,
  "pending_transfers": 0,
  "curation_rewards": 2663,
  "posting_rewards": 52285,
  "proxied_vsf_votes": [
    0,
    0,
    0,
    0
  ],
  "witnesses_voted_for": 0,
  "last_post": "2019-06-11T23:43:39",
  "last_root_post": "2019-06-11T23:43:39",
  "last_vote_time": "2019-06-11T23:45:00",
  "post_bandwidth": 0,
  "pending_claimed_accounts": 0,
  "governance_vote_expiration_ts": "1969-12-31T23:59:59",
  "delayed_votes": [],
  "open_recurrent_transfers": 0,
  "vesting_balance": "0.000 HIVE",
  "reputation": 0,
  "transfer_history": [],
  "market_history": [],
  "post_history": [],
  "vote_history": [],
  "other_history": [],
  "witness_votes": [],
  "tags_usage": [],
  "guest_bloggers": [],
  "rank": 0
}

Withdraw Routes

IncomingOutgoing
Empty
Empty
{
  "incoming": [],
  "outgoing": []
}
From Date
To Date
2020/02/05 11:41:00
bodyCongratulations @huti! You received a personal award! <table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@huti/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@huti) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=huti)_</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-ranking-update-a-better-rich-list-comparator"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmfRVpHQhLDhnjDtqck8GPv9NPvNKPfMsDaAFDE1D9Er2Z/header_ranking.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-ranking-update-a-better-rich-list-comparator">SteemitBoard Ranking update - A better rich list comparator</a></td></tr></table> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
title
authorsteemitboard
permlinksteemitboard-notify-huti-20200205t114056000z
json metadata{"image":["https://steemitboard.com/img/notify.png"]}
parent authorhuti
parent permlinkphp-4-while-for
Transaction InfoBlock #40552324/Trx 7bbd1318e813f0686dae7aa49f519916f16df90e
View Raw JSON Data
{
  "op": [
    "comment",
    {
      "body": "Congratulations @huti! You received a personal award!\n\n<table><tr><td>https://steemitimages.com/70x70/http://steemitboard.com/@huti/birthday2.png</td><td>Happy Birthday! - You are on the Steem blockchain for 2 years!</td></tr></table>\n\n<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@huti) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=huti)_</sub>\n\n\n**Do not miss the last post from @steemitboard:**\n<table><tr><td><a href=\"https://steemit.com/steemitboard/@steemitboard/steemitboard-ranking-update-a-better-rich-list-comparator\"><img src=\"https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmfRVpHQhLDhnjDtqck8GPv9NPvNKPfMsDaAFDE1D9Er2Z/header_ranking.png\"></a></td><td><a href=\"https://steemit.com/steemitboard/@steemitboard/steemitboard-ranking-update-a-better-rich-list-comparator\">SteemitBoard Ranking update - A better rich list comparator</a></td></tr></table>\n\n###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!",
      "title": "",
      "author": "steemitboard",
      "permlink": "steemitboard-notify-huti-20200205t114056000z",
      "json_metadata": "{\"image\":[\"https://steemitboard.com/img/notify.png\"]}",
      "parent_author": "huti",
      "parent_permlink": "php-4-while-for"
    }
  ],
  "block": 40552324,
  "trx_id": "7bbd1318e813f0686dae7aa49f519916f16df90e",
  "op_in_trx": 0,
  "timestamp": "2020-02-05T11:41:00",
  "virtual_op": false,
  "trx_in_block": 13
}
hutireceived 0.000 HIVE from power down installment (0.000 HP)
2019/09/20 02:20:15
deposited0.000 HIVE
withdrawn0.000007 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #36574466/Virtual Operation 4294967295:2
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "0.000 HIVE",
      "withdrawn": "0.000007 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 36574466,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 2,
  "timestamp": "2019-09-20T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutisent 53.711 HIVE to @upbituserwallet- "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5"
2019/09/15 14:45:15
toupbituserwallet
fromhuti
memoa8eb6c8f-b50c-4adf-82fb-00524edfd0a5
amount53.711 HIVE
Transaction InfoBlock #36445639/Trx 9810437f20dad8e6911bd5b2db09e399b9dd39d4
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "upbituserwallet",
      "from": "huti",
      "memo": "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5",
      "amount": "53.711 HIVE"
    }
  ],
  "block": 36445639,
  "trx_id": "9810437f20dad8e6911bd5b2db09e399b9dd39d4",
  "op_in_trx": 0,
  "timestamp": "2019-09-15T14:45:15",
  "virtual_op": false,
  "trx_in_block": 25
}
hutireceived 26.861 HIVE from power down installment (32.774 HP)
2019/09/13 02:20:15
deposited26.861 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #36373302/Virtual Operation 4294967295:11
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.861 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 36373302,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 11,
  "timestamp": "2019-09-13T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.850 HIVE from power down installment (32.774 HP)
2019/09/06 02:20:15
deposited26.850 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #36172500/Virtual Operation 4294967295:2
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.850 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 36172500,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 2,
  "timestamp": "2019-09-06T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutisent 214.393 HIVE to @upbituserwallet- "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5"
2019/08/30 05:58:27
toupbituserwallet
fromhuti
memoa8eb6c8f-b50c-4adf-82fb-00524edfd0a5
amount214.393 HIVE
Transaction InfoBlock #35992132/Trx b0a0f6834d862af0a0d510bdd2560e9134b58586
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "upbituserwallet",
      "from": "huti",
      "memo": "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5",
      "amount": "214.393 HIVE"
    }
  ],
  "block": 35992132,
  "trx_id": "b0a0f6834d862af0a0d510bdd2560e9134b58586",
  "op_in_trx": 0,
  "timestamp": "2019-08-30T05:58:27",
  "virtual_op": false,
  "trx_in_block": 24
}
hutireceived 26.839 HIVE from power down installment (32.774 HP)
2019/08/30 02:20:15
deposited26.839 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #35987801/Virtual Operation 4294967295:7
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.839 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 35987801,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 7,
  "timestamp": "2019-08-30T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.828 HIVE from power down installment (32.774 HP)
2019/08/23 02:20:15
deposited26.828 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #35791600/Virtual Operation 4294967295:9
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.828 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 35791600,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 9,
  "timestamp": "2019-08-23T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
dtubesent 0.001 HIVE to @huti- "Time is running out, claim your DTube account now before anyone else can! Login at https://d.tube"
2019/08/22 17:34:27
tohuti
fromdtube
memoTime is running out, claim your DTube account now before anyone else can! Login at https://d.tube
amount0.001 HIVE
Transaction InfoBlock #35781096/Trx 1c7f4f825711cbc20071799473840f81b1b4afcd
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "huti",
      "from": "dtube",
      "memo": "Time is running out, claim your DTube account now before anyone else can! Login at https://d.tube",
      "amount": "0.001 HIVE"
    }
  ],
  "block": 35781096,
  "trx_id": "1c7f4f825711cbc20071799473840f81b1b4afcd",
  "op_in_trx": 25,
  "timestamp": "2019-08-22T17:34:27",
  "virtual_op": false,
  "trx_in_block": 2
}
hutireceived 26.816 HIVE from power down installment (32.774 HP)
2019/08/16 02:20:15
deposited26.816 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #35590342/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.816 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 35590342,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-08-16T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.805 HIVE from power down installment (32.774 HP)
2019/08/09 02:20:15
deposited26.805 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #35389103/Virtual Operation 4294967295:3
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.805 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 35389103,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 3,
  "timestamp": "2019-08-09T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.793 HIVE from power down installment (32.774 HP)
2019/08/02 02:20:15
deposited26.793 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #35188749/Virtual Operation 4294967295:3
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.793 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 35188749,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 3,
  "timestamp": "2019-08-02T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.782 HIVE from power down installment (32.774 HP)
2019/07/26 02:20:15
deposited26.782 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #34987464/Virtual Operation 4294967295:3
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.782 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 34987464,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 3,
  "timestamp": "2019-07-26T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.770 HIVE from power down installment (32.774 HP)
2019/07/19 02:20:15
deposited26.770 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #34786501/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.770 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 34786501,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-07-19T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.759 HIVE from power down installment (32.774 HP)
2019/07/12 02:20:15
deposited26.759 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #34585118/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.759 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 34585118,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-07-12T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutisent 53.485 HIVE to @upbituserwallet- "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5"
2019/07/05 11:54:03
toupbituserwallet
fromhuti
memoa8eb6c8f-b50c-4adf-82fb-00524edfd0a5
amount53.485 HIVE
Transaction InfoBlock #34395163/Trx 0885f957b620dd72f858e3e2ff1ef4b8d3132714
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "upbituserwallet",
      "from": "huti",
      "memo": "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5",
      "amount": "53.485 HIVE"
    }
  ],
  "block": 34395163,
  "trx_id": "0885f957b620dd72f858e3e2ff1ef4b8d3132714",
  "op_in_trx": 0,
  "timestamp": "2019-07-05T11:54:03",
  "virtual_op": false,
  "trx_in_block": 24
}
hutireceived 26.748 HIVE from power down installment (32.774 HP)
2019/07/05 02:20:15
deposited26.748 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #34383695/Virtual Operation 4294967295:7
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.748 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 34383695,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 7,
  "timestamp": "2019-07-05T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 26.737 HIVE from power down installment (32.774 HP)
2019/06/28 02:20:15
deposited26.737 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #34182429/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.737 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 34182429,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-06-28T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutisent 0.381 HBD to @upbituserwallet- "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5"
2019/06/22 02:41:21
toupbituserwallet
fromhuti
memoa8eb6c8f-b50c-4adf-82fb-00524edfd0a5
amount0.381 HBD
Transaction InfoBlock #34010253/Trx 45feb2dc540031f246c02dd26bd05604b302a1f3
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "upbituserwallet",
      "from": "huti",
      "memo": "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5",
      "amount": "0.381 HBD"
    }
  ],
  "block": 34010253,
  "trx_id": "45feb2dc540031f246c02dd26bd05604b302a1f3",
  "op_in_trx": 0,
  "timestamp": "2019-06-22T02:41:21",
  "virtual_op": false,
  "trx_in_block": 13
}
hutisent 26.726 HIVE to @upbituserwallet- "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5"
2019/06/22 02:40:33
toupbituserwallet
fromhuti
memoa8eb6c8f-b50c-4adf-82fb-00524edfd0a5
amount26.726 HIVE
Transaction InfoBlock #34010237/Trx 86855bf7434ea636b3c1aa782ce5c0f3c1cabf1e
View Raw JSON Data
{
  "op": [
    "transfer",
    {
      "to": "upbituserwallet",
      "from": "huti",
      "memo": "a8eb6c8f-b50c-4adf-82fb-00524edfd0a5",
      "amount": "26.726 HIVE"
    }
  ],
  "block": 34010237,
  "trx_id": "86855bf7434ea636b3c1aa782ce5c0f3c1cabf1e",
  "op_in_trx": 0,
  "timestamp": "2019-06-22T02:40:33",
  "virtual_op": false,
  "trx_in_block": 2
}
hutireceived 26.726 HIVE from power down installment (32.774 HP)
2019/06/21 02:20:15
deposited26.726 HIVE
withdrawn53195.136250 VESTS
to accounthuti
from accounthuti
Transaction InfoBlock #33981059/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "fill_vesting_withdraw",
    {
      "deposited": "26.726 HIVE",
      "withdrawn": "53195.136250 VESTS",
      "to_account": "huti",
      "from_account": "huti"
    }
  ],
  "block": 33981059,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-06-21T02:20:15",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
huticlaimed reward balance: 0.001 HP
2019/06/20 01:09:39
accounthuti
reward hbd0.000 HBD
reward hive0.000 HIVE
reward vests1.990687 VESTS
Transaction InfoBlock #33950877/Trx c001d12cff9e8b282ddfd52e0a6f7b0e7301f5c7
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.000 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "1.990687 VESTS"
    }
  ],
  "block": 33950877,
  "trx_id": "c001d12cff9e8b282ddfd52e0a6f7b0e7301f5c7",
  "op_in_trx": 0,
  "timestamp": "2019-06-20T01:09:39",
  "virtual_op": false,
  "trx_in_block": 9
}
hutiupdated payout for php-4-while-for
2019/06/18 23:43:39
authorhuti
permlinkphp-4-while-for
Transaction InfoBlock #33920390/Virtual Operation 4294967295:8
View Raw JSON Data
{
  "op": [
    "comment_payout_update",
    {
      "author": "huti",
      "permlink": "php-4-while-for"
    }
  ],
  "block": 33920390,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 8,
  "timestamp": "2019-06-18T23:43:39",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.001 HP curation reward for @isb / steem-cross-5300-satoshi-today
2019/06/18 12:09:18
authorisb
reward1.990687 VESTS
curatorhuti
permlinksteem-cross-5300-satoshi-today
payout must be claimedtrue
Transaction InfoBlock #33906520/Virtual Operation 4294967295:131
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "isb",
      "reward": "1.990687 VESTS",
      "curator": "huti",
      "permlink": "steem-cross-5300-satoshi-today",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33906520,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 131,
  "timestamp": "2019-06-18T12:09:18",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
huticlaimed reward balance: 0.004 HP
2019/06/18 11:03:57
accounthuti
reward hbd0.000 HBD
reward hive0.000 HIVE
reward vests5.972289 VESTS
Transaction InfoBlock #33905214/Trx 140ca68a3662d409895ec2110577848395166c8c
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.000 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "5.972289 VESTS"
    }
  ],
  "block": 33905214,
  "trx_id": "140ca68a3662d409895ec2110577848395166c8c",
  "op_in_trx": 0,
  "timestamp": "2019-06-18T11:03:57",
  "virtual_op": false,
  "trx_in_block": 6
}
hutireceived 0.004 HP curation reward for @zaku / monster-market-a-discord-steem-monsters-market-bot
2019/06/17 20:11:00
authorzaku
reward5.972289 VESTS
curatorhuti
permlinkmonster-market-a-discord-steem-monsters-market-bot
payout must be claimedtrue
Transaction InfoBlock #33887605/Virtual Operation 4294967295:764
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "zaku",
      "reward": "5.972289 VESTS",
      "curator": "huti",
      "permlink": "monster-market-a-discord-steem-monsters-market-bot",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33887605,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 764,
  "timestamp": "2019-06-17T20:11:00",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
huticlaimed reward balance: 0.002 HP
2019/06/17 12:42:27
accounthuti
reward hbd0.000 HBD
reward hive0.000 HIVE
reward vests3.981696 VESTS
Transaction InfoBlock #33878642/Trx 5b9a20b2b2268fcfba45c82069145f6c5613a58e
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.000 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "3.981696 VESTS"
    }
  ],
  "block": 33878642,
  "trx_id": "5b9a20b2b2268fcfba45c82069145f6c5613a58e",
  "op_in_trx": 0,
  "timestamp": "2019-06-17T12:42:27",
  "virtual_op": false,
  "trx_in_block": 25
}
hutireceived 0.002 HP curation reward for @hyeongjoongyoon / -14--1560133622789
2019/06/17 02:27:03
authorhyeongjoongyoon
reward3.981696 VESTS
curatorhuti
permlink-14--1560133622789
payout must be claimedtrue
Transaction InfoBlock #33866347/Virtual Operation 4294967295:28
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "hyeongjoongyoon",
      "reward": "3.981696 VESTS",
      "curator": "huti",
      "permlink": "-14--1560133622789",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33866347,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 28,
  "timestamp": "2019-06-17T02:27:03",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
huticlaimed reward balance: 0.002 HP
2019/06/16 22:21:27
accounthuti
reward hbd0.000 HBD
reward hive0.000 HIVE
reward vests3.981914 VESTS
Transaction InfoBlock #33861439/Trx 7c8825797638601ebf93858e1291e12cc425e859
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.000 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "3.981914 VESTS"
    }
  ],
  "block": 33861439,
  "trx_id": "7c8825797638601ebf93858e1291e12cc425e859",
  "op_in_trx": 0,
  "timestamp": "2019-06-16T22:21:27",
  "virtual_op": false,
  "trx_in_block": 8
}
hutireceived 0.002 HP curation reward for @pediatrics / 6u8rk
2019/06/16 03:50:39
authorpediatrics
reward3.981914 VESTS
curatorhuti
permlink6u8rk
payout must be claimedtrue
Transaction InfoBlock #33839246/Virtual Operation 4294967295:37
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "pediatrics",
      "reward": "3.981914 VESTS",
      "curator": "huti",
      "permlink": "6u8rk",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33839246,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 37,
  "timestamp": "2019-06-16T03:50:39",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutistarted power down of 426.057 HP
2019/06/14 02:20:18
accounthuti
vesting shares691536.771257 VESTS
Transaction InfoBlock #33779903/Trx d648c3fc3ca2cf1d8bd1cc6564dbf9c52468cbf2
View Raw JSON Data
{
  "op": [
    "withdraw_vesting",
    {
      "account": "huti",
      "vesting_shares": "691536.771257 VESTS"
    }
  ],
  "block": 33779903,
  "trx_id": "d648c3fc3ca2cf1d8bd1cc6564dbf9c52468cbf2",
  "op_in_trx": 0,
  "timestamp": "2019-06-14T02:20:18",
  "virtual_op": false,
  "trx_in_block": 8
}
huticlaimed reward balance: 0.023 HBD, 0.071 HP
2019/06/14 02:19:42
accounthuti
reward hbd0.023 HBD
reward hive0.000 HIVE
reward vests115.496112 VESTS
Transaction InfoBlock #33779891/Trx 89144e6e48740fb2edb851d1e3a673140dbdbc69
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.023 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "115.496112 VESTS"
    }
  ],
  "block": 33779891,
  "trx_id": "89144e6e48740fb2edb851d1e3a673140dbdbc69",
  "op_in_trx": 0,
  "timestamp": "2019-06-14T02:19:42",
  "virtual_op": false,
  "trx_in_block": 1
}
hutiupdated payout for php-3-if-if-elseif-else
2019/06/13 01:43:36
authorhuti
permlinkphp-3-if-if-elseif-else
Transaction InfoBlock #33750404/Virtual Operation 4294967295:7
View Raw JSON Data
{
  "op": [
    "comment_payout_update",
    {
      "author": "huti",
      "permlink": "php-3-if-if-elseif-else"
    }
  ],
  "block": 33750404,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 7,
  "timestamp": "2019-06-13T01:43:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.056 HBD reward share for php-3-if-if-elseif-else
2019/06/13 01:43:36
authorhuti
payout0.056 HBD
permlinkphp-3-if-if-elseif-else
author rewards115
total payout value0.046 HBD
curator payout value0.009 HBD
beneficiary payout value0.000 HBD
Transaction InfoBlock #33750404/Virtual Operation 4294967295:6
View Raw JSON Data
{
  "op": [
    "comment_reward",
    {
      "author": "huti",
      "payout": "0.056 HBD",
      "permlink": "php-3-if-if-elseif-else",
      "author_rewards": 115,
      "total_payout_value": "0.046 HBD",
      "curator_payout_value": "0.009 HBD",
      "beneficiary_payout_value": "0.000 HBD"
    }
  ],
  "block": 33750404,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 6,
  "timestamp": "2019-06-13T01:43:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.023 HBD, 0.071 HP author reward for @huti / php-3-if-if-elseif-else
2019/06/13 01:43:36
authorhuti
permlinkphp-3-if-if-elseif-else
hbd payout0.023 HBD
hive payout0.000 HIVE
vesting payout115.496112 VESTS
payout must be claimedtrue
curators vesting payout45.800182 VESTS
Transaction InfoBlock #33750404/Virtual Operation 4294967295:5
View Raw JSON Data
{
  "op": [
    "author_reward",
    {
      "author": "huti",
      "permlink": "php-3-if-if-elseif-else",
      "hbd_payout": "0.023 HBD",
      "hive_payout": "0.000 HIVE",
      "vesting_payout": "115.496112 VESTS",
      "payout_must_be_claimed": true,
      "curators_vesting_payout": "45.800182 VESTS"
    }
  ],
  "block": 33750404,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 5,
  "timestamp": "2019-06-13T01:43:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutieffective vote applied for @isb / steem-cross-5300-satoshi-today
2019/06/11 23:45:03
voterhuti
authorisb
weight379 (3.79%)
rshares12706913909
permlinksteem-cross-5300-satoshi-today
pending payout131.459 HBD
total vote weight14955070
Transaction InfoBlock #33719271/Trx 118429162d36c2a4728d593d4457946d8d8bb95a
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "isb",
      "weight": 379,
      "rshares": 12706913909,
      "permlink": "steem-cross-5300-satoshi-today",
      "pending_payout": "131.459 HBD",
      "total_vote_weight": 14955070
    }
  ],
  "block": 33719271,
  "trx_id": "118429162d36c2a4728d593d4457946d8d8bb95a",
  "op_in_trx": 1,
  "timestamp": "2019-06-11T23:45:03",
  "virtual_op": true,
  "trx_in_block": 22
}
2019/06/11 23:45:03
voterhuti
authorisb
weight10000 (100.00%)
permlinksteem-cross-5300-satoshi-today
Transaction InfoBlock #33719271/Trx 118429162d36c2a4728d593d4457946d8d8bb95a
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "isb",
      "weight": 10000,
      "permlink": "steem-cross-5300-satoshi-today"
    }
  ],
  "block": 33719271,
  "trx_id": "118429162d36c2a4728d593d4457946d8d8bb95a",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:45:03",
  "virtual_op": false,
  "trx_in_block": 22
}
2019/06/11 23:45:00
voterhuti
authorzaku
weight387 (3.87%)
rshares12967161100
permlinkmonster-market-a-discord-steem-monsters-market-bot
pending payout282.048 HBD
total vote weight22473537
Transaction InfoBlock #33719270/Trx 04ab2f1aebd2bf83e975dae9d5a442968559e4be
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "zaku",
      "weight": 387,
      "rshares": 12967161100,
      "permlink": "monster-market-a-discord-steem-monsters-market-bot",
      "pending_payout": "282.048 HBD",
      "total_vote_weight": 22473537
    }
  ],
  "block": 33719270,
  "trx_id": "04ab2f1aebd2bf83e975dae9d5a442968559e4be",
  "op_in_trx": 1,
  "timestamp": "2019-06-11T23:45:00",
  "virtual_op": true,
  "trx_in_block": 20
}
2019/06/11 23:45:00
voterhuti
authorzaku
weight10000 (100.00%)
permlinkmonster-market-a-discord-steem-monsters-market-bot
Transaction InfoBlock #33719270/Trx 04ab2f1aebd2bf83e975dae9d5a442968559e4be
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "zaku",
      "weight": 10000,
      "permlink": "monster-market-a-discord-steem-monsters-market-bot"
    }
  ],
  "block": 33719270,
  "trx_id": "04ab2f1aebd2bf83e975dae9d5a442968559e4be",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:45:00",
  "virtual_op": false,
  "trx_in_block": 20
}
hutieffective vote applied for @pediatrics / 6u8rk
2019/06/11 23:44:48
voterhuti
authorpediatrics
weight1577 (15.77%)
rshares13232425487
permlink6u8rk
pending payout8.864 HBD
total vote weight3867892
Transaction InfoBlock #33719266/Trx ddd773cd33ed45bf6151d6804551e12b80deb6b4
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "pediatrics",
      "weight": 1577,
      "rshares": 13232425487,
      "permlink": "6u8rk",
      "pending_payout": "8.864 HBD",
      "total_vote_weight": 3867892
    }
  ],
  "block": 33719266,
  "trx_id": "ddd773cd33ed45bf6151d6804551e12b80deb6b4",
  "op_in_trx": 1,
  "timestamp": "2019-06-11T23:44:48",
  "virtual_op": true,
  "trx_in_block": 12
}
hutiupvoted (100.00%) @pediatrics / 6u8rk
2019/06/11 23:44:48
voterhuti
authorpediatrics
weight10000 (100.00%)
permlink6u8rk
Transaction InfoBlock #33719266/Trx ddd773cd33ed45bf6151d6804551e12b80deb6b4
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "pediatrics",
      "weight": 10000,
      "permlink": "6u8rk"
    }
  ],
  "block": 33719266,
  "trx_id": "ddd773cd33ed45bf6151d6804551e12b80deb6b4",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:44:48",
  "virtual_op": false,
  "trx_in_block": 12
}
hutieffective vote applied for @hyeongjoongyoon / -14--1560133622789
2019/06/11 23:44:39
voterhuti
authorhyeongjoongyoon
weight1610 (16.10%)
rshares13503201424
permlink-14--1560133622789
pending payout7.416 HBD
total vote weight3578715
Transaction InfoBlock #33719263/Trx ef306c8f8bd65730c2cda390351ef02d298db8ab
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "hyeongjoongyoon",
      "weight": 1610,
      "rshares": 13503201424,
      "permlink": "-14--1560133622789",
      "pending_payout": "7.416 HBD",
      "total_vote_weight": 3578715
    }
  ],
  "block": 33719263,
  "trx_id": "ef306c8f8bd65730c2cda390351ef02d298db8ab",
  "op_in_trx": 1,
  "timestamp": "2019-06-11T23:44:39",
  "virtual_op": true,
  "trx_in_block": 14
}
2019/06/11 23:44:39
voterhuti
authorhyeongjoongyoon
weight10000 (100.00%)
permlink-14--1560133622789
Transaction InfoBlock #33719263/Trx ef306c8f8bd65730c2cda390351ef02d298db8ab
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "hyeongjoongyoon",
      "weight": 10000,
      "permlink": "-14--1560133622789"
    }
  ],
  "block": 33719263,
  "trx_id": "ef306c8f8bd65730c2cda390351ef02d298db8ab",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:44:39",
  "virtual_op": false,
  "trx_in_block": 14
}
hutieffective vote applied for @huti / php-4-while-for
2019/06/11 23:43:57
voterhuti
authorhuti
weight1968 (19.68%)
rshares13778425503
permlinkphp-4-while-for
pending payout0.008 HBD
total vote weight118096
Transaction InfoBlock #33719249/Trx 4fedea5d08e10b8ba8b24e857705c891ad430364
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "huti",
      "weight": 1968,
      "rshares": 13778425503,
      "permlink": "php-4-while-for",
      "pending_payout": "0.008 HBD",
      "total_vote_weight": 118096
    }
  ],
  "block": 33719249,
  "trx_id": "4fedea5d08e10b8ba8b24e857705c891ad430364",
  "op_in_trx": 1,
  "timestamp": "2019-06-11T23:43:57",
  "virtual_op": true,
  "trx_in_block": 11
}
hutiupvoted (100.00%) @huti / php-4-while-for
2019/06/11 23:43:57
voterhuti
authorhuti
weight10000 (100.00%)
permlinkphp-4-while-for
Transaction InfoBlock #33719249/Trx 4fedea5d08e10b8ba8b24e857705c891ad430364
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "huti",
      "weight": 10000,
      "permlink": "php-4-while-for"
    }
  ],
  "block": 33719249,
  "trx_id": "4fedea5d08e10b8ba8b24e857705c891ad430364",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:43:57",
  "virtual_op": false,
  "trx_in_block": 11
}
hutipublished a new post: php-4-while-for
2019/06/11 23:43:42
body프로그래밍에서 조건문만큼 많이 쓰이는 것이 반복문이다. 반복문을 사용하면, 효과적으로 반복해서 공격을 수행하는 프로그램을 만들 수도 있으며, 불필요한 조건문의 반복 사용을 줄일 수도 있다. PHP의 반복문으로는 while()문과 for()문이 있다. 두 반복문 모두 임의의 변수에 값을 설정한 후, 값을 증가 혹은 감소시켜 특정 조건이 만족할 때까지 반복하게 하는 구조로 되어 있다. 이를 루프(loop) 구조라고 한다. 루프 구조에는 보통 세 가지 요소가 온다. 첫째는 임의의 변수에 초기값을 할당하는 초기 표현식이다. 일반적으로 초기 표현식에는 $i=1처럼 숫자가 오지만, 여러 가지 방식으로 응용이 가능하다. 둘째는 초기 표현식을 증가시키거나 감소시키면서 반복 count를 셀 수 있게 해주는 증감문이다. 일반적으로 $i++, $i--가 많이 오는데, 이 역시 여러 가지 방식으로 응용할 수 있다. ++는 하나를 증가하라는 뜻이고, --는 하나를 감소시키라는 뜻이다. 윗몸 일으키기를 100번 반복한다고 했을 때, 1부터 100까지 차례대로 숫자를 올리면서 횟수를 세는 방식이 있고, 100부터 1까지 숫자를 내리면서 횟수를 세는 방식이 있다. 올리면서 횟수를 세는 방식이 ++이고, 내리면서 횟수를 세는 방식이 --이다. 마지막으로 루프를 탈출할 조건이 와야 한다. 윗몸 일으키기 100회라는 조건을 걸지 않으면, 반복문은 무한 루프가 된다. 따라서 $i<101이면, 루프 구조를 빠져나가라는 조건 표현식이 와야 한다. 아래는 SQL injection 구문을 출력하기 위한 While문이다. <?php $data=1; //초기 표현식 while ($data<=10){ //루프 탈출 조건문 print "$data' and 1=1--\n"; //SQL injection 구문 출력 $data++; //증감문 } ?> 위 반복문을 실행한 결과는 아래와 같다. ![](https://cdn.steemitimages.com/DQmQfPSHR35YqgXSZXxoYsHzXSvvnUNnQL7i5beCSPRStQK/image.png) while문은 if문과 형식이 비슷하다. while()안에 오는 조건문이 참이면, 반복문을 실행하고, 조건문이 거짓이면, 반복문을 빠져나온다. 위의 while문은 for문으로 변경할 수 있다. for문의 기본 형식은 아래와 같다. for(초기 표현식;루프 탈출 조건문;증감문) 따라서 위의 while문을 아래처럼 for문으로 바꿀 수 있다. <?php for($data=1;$data<=10;$data++){ //for문 print "$data' and 1=1--\n"; //SQL injection 구문 출력 } ?> for문을 실행하면, while문과 같은 결과가 출력된다. ![](https://cdn.steemitimages.com/DQmYuANdsDvvwgpttME8xLmEPEkRrmGr4sMfsB2td8zFRAu/image.png) * 이 내용은 칼리!도커를해킹하다 2부의 아주 일부입니다. 책에서 더 자세히 다룹니다. 2부는 2019년 6월 출간 예정입니다. * 칼리!도커를해킹하다 1부는 2부를 공부하기 전에 알아야 할 내용으로 이미 전자책으로 출간되었습니다. 리디북스 https://ridibooks.com/v2/Detail?id=2853000018&fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE 예스24 http://www.yes24.com/Product/Goods/71536932?scode=032&OzSrank=4 알라딘 https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326
title[웹프로그래밍과 PHP] 4. 반복문(while,for)
authorhuti
permlinkphp-4-while-for
json metadata{"tags":["kr","kr-it","php","web","kr-tech"],"image":["https://cdn.steemitimages.com/DQmQfPSHR35YqgXSZXxoYsHzXSvvnUNnQL7i5beCSPRStQK/image.png","https://cdn.steemitimages.com/DQmYuANdsDvvwgpttME8xLmEPEkRrmGr4sMfsB2td8zFRAu/image.png"],"links":["https://ridibooks.com/v2/Detail?id=2853000018&amp;fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE","http://www.yes24.com/Product/Goods/71536932?scode=032&amp;OzSrank=4","https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326"],"app":"steemit/0.1","format":"markdown"}
parent author
parent permlinkkr
Transaction InfoBlock #33719244/Trx 29220398922f6a4dc9c9c5492ddc50f263d371a5
View Raw JSON Data
{
  "op": [
    "comment",
    {
      "body": "프로그래밍에서 조건문만큼 많이 쓰이는 것이 반복문이다. 반복문을 사용하면, 효과적으로 반복해서 공격을 수행하는 프로그램을 만들 수도 있으며, 불필요한 조건문의 반복 사용을 줄일 수도 있다.\n\nPHP의 반복문으로는 while()문과 for()문이 있다. 두 반복문 모두 임의의 변수에 값을 설정한 후, 값을 증가 혹은 감소시켜 특정 조건이 만족할 때까지 반복하게 하는 구조로 되어 있다. 이를 루프(loop) 구조라고 한다.\n\n루프 구조에는 보통 세 가지 요소가 온다. 첫째는 임의의 변수에 초기값을 할당하는 초기 표현식이다. 일반적으로 초기 표현식에는 $i=1처럼 숫자가 오지만, 여러 가지 방식으로 응용이 가능하다. 둘째는 초기 표현식을 증가시키거나 감소시키면서 반복 count를 셀 수 있게 해주는 증감문이다. 일반적으로 $i++, $i--가 많이 오는데, 이 역시 여러 가지 방식으로 응용할 수 있다. ++는 하나를 증가하라는 뜻이고, --는 하나를 감소시키라는 뜻이다. 윗몸 일으키기를 100번 반복한다고 했을 때, 1부터 100까지 차례대로 숫자를 올리면서 횟수를 세는 방식이 있고, 100부터 1까지 숫자를 내리면서 횟수를 세는 방식이 있다. 올리면서 횟수를 세는 방식이 ++이고, 내리면서 횟수를 세는 방식이 --이다. 마지막으로 루프를 탈출할 조건이 와야 한다. 윗몸 일으키기 100회라는 조건을 걸지 않으면, 반복문은 무한 루프가 된다. 따라서 $i<101이면, 루프 구조를 빠져나가라는 조건 표현식이 와야 한다.\n\n아래는 SQL injection 구문을 출력하기 위한 While문이다.\n\n\n<?php\n\n\n$data=1; //초기 표현식\n\n\nwhile ($data<=10){ //루프 탈출 조건문\n\n\n           print \"$data' and 1=1--\\n\";          //SQL injection 구문 출력\n\n\n           $data++;          //증감문\n\n\n}\n\n\n?>\n\n\n\n위 반복문을 실행한 결과는 아래와 같다.\n\n![](https://cdn.steemitimages.com/DQmQfPSHR35YqgXSZXxoYsHzXSvvnUNnQL7i5beCSPRStQK/image.png)\n\n\n\nwhile문은 if문과 형식이 비슷하다. while()안에 오는 조건문이 참이면, 반복문을 실행하고, 조건문이 거짓이면, 반복문을 빠져나온다.\n\n위의 while문은 for문으로 변경할 수 있다.\n\nfor문의 기본 형식은 아래와 같다.\n\nfor(초기 표현식;루프 탈출 조건문;증감문)\n\n \n\n따라서 위의 while문을 아래처럼 for문으로 바꿀 수 있다.\n\n\n<?php\n\nfor($data=1;$data<=10;$data++){  //for문\n\n           print \"$data' and 1=1--\\n\";          //SQL injection 구문 출력\n\n}\n\n?>\n\n\n\nfor문을 실행하면, while문과 같은 결과가 출력된다. \n\n ![](https://cdn.steemitimages.com/DQmYuANdsDvvwgpttME8xLmEPEkRrmGr4sMfsB2td8zFRAu/image.png)\n\n\n\n* 이 내용은 칼리!도커를해킹하다 2부의 아주 일부입니다. 책에서 더 자세히 다룹니다. 2부는 2019년 6월 출간 예정입니다. \n\n* 칼리!도커를해킹하다 1부는 2부를 공부하기 전에 알아야 할 내용으로 이미 전자책으로 출간되었습니다.\n\n\n\n리디북스 https://ridibooks.com/v2/Detail?id=2853000018&fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE\n\n \n\n예스24 http://www.yes24.com/Product/Goods/71536932?scode=032&OzSrank=4\n\n\n\n알라딘 https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326",
      "title": "[웹프로그래밍과 PHP] 4. 반복문(while,for)",
      "author": "huti",
      "permlink": "php-4-while-for",
      "json_metadata": "{\"tags\":[\"kr\",\"kr-it\",\"php\",\"web\",\"kr-tech\"],\"image\":[\"https://cdn.steemitimages.com/DQmQfPSHR35YqgXSZXxoYsHzXSvvnUNnQL7i5beCSPRStQK/image.png\",\"https://cdn.steemitimages.com/DQmYuANdsDvvwgpttME8xLmEPEkRrmGr4sMfsB2td8zFRAu/image.png\"],\"links\":[\"https://ridibooks.com/v2/Detail?id=2853000018&amp;fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE\",\"http://www.yes24.com/Product/Goods/71536932?scode=032&amp;OzSrank=4\",\"https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}",
      "parent_author": "",
      "parent_permlink": "kr"
    }
  ],
  "block": 33719244,
  "trx_id": "29220398922f6a4dc9c9c5492ddc50f263d371a5",
  "op_in_trx": 0,
  "timestamp": "2019-06-11T23:43:42",
  "virtual_op": false,
  "trx_in_block": 13
}
huticlaimed reward balance: 0.019 HBD, 0.117 HP
2019/06/10 00:52:27
accounthuti
reward hbd0.019 HBD
reward hive0.000 HIVE
reward vests189.215001 VESTS
Transaction InfoBlock #33663102/Trx 454bf44c9470079bd2f7ec7c3ddbfb65e86b5326
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.019 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "189.215001 VESTS"
    }
  ],
  "block": 33663102,
  "trx_id": "454bf44c9470079bd2f7ec7c3ddbfb65e86b5326",
  "op_in_trx": 0,
  "timestamp": "2019-06-10T00:52:27",
  "virtual_op": false,
  "trx_in_block": 28
}
hutiupdated payout for php-2-php
2019/06/09 10:10:09
authorhuti
permlinkphp-2-php
Transaction InfoBlock #33645486/Virtual Operation 4294967295:7
View Raw JSON Data
{
  "op": [
    "comment_payout_update",
    {
      "author": "huti",
      "permlink": "php-2-php"
    }
  ],
  "block": 33645486,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 7,
  "timestamp": "2019-06-09T10:10:09",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.048 HBD reward share for php-2-php
2019/06/09 10:10:09
authorhuti
payout0.048 HBD
permlinkphp-2-php
author rewards109
total payout value0.039 HBD
curator payout value0.008 HBD
beneficiary payout value0.000 HBD
Transaction InfoBlock #33645486/Virtual Operation 4294967295:6
View Raw JSON Data
{
  "op": [
    "comment_reward",
    {
      "author": "huti",
      "payout": "0.048 HBD",
      "permlink": "php-2-php",
      "author_rewards": 109,
      "total_payout_value": "0.039 HBD",
      "curator_payout_value": "0.008 HBD",
      "beneficiary_payout_value": "0.000 HBD"
    }
  ],
  "block": 33645486,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 6,
  "timestamp": "2019-06-09T10:10:09",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.019 HBD, 0.067 HP author reward for @huti / php-2-php
2019/06/09 10:10:09
authorhuti
permlinkphp-2-php
hbd payout0.019 HBD
hive payout0.000 HIVE
vesting payout109.545372 VESTS
payout must be claimedtrue
curators vesting payout43.818149 VESTS
Transaction InfoBlock #33645486/Virtual Operation 4294967295:5
View Raw JSON Data
{
  "op": [
    "author_reward",
    {
      "author": "huti",
      "permlink": "php-2-php",
      "hbd_payout": "0.019 HBD",
      "hive_payout": "0.000 HIVE",
      "vesting_payout": "109.545372 VESTS",
      "payout_must_be_claimed": true,
      "curators_vesting_payout": "43.818149 VESTS"
    }
  ],
  "block": 33645486,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 5,
  "timestamp": "2019-06-09T10:10:09",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.045 HP curation reward for @hyeongjoongyoon / 5afpnf
2019/06/09 10:03:06
authorhyeongjoongyoon
reward73.694180 VESTS
curatorhuti
permlink5afpnf
payout must be claimedtrue
Transaction InfoBlock #33645346/Virtual Operation 4294967295:9
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "hyeongjoongyoon",
      "reward": "73.694180 VESTS",
      "curator": "huti",
      "permlink": "5afpnf",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33645346,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 9,
  "timestamp": "2019-06-09T10:03:06",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.002 HP curation reward for @hatu / key-to-data-security-sustaining-convenience
2019/06/09 00:44:48
authorhatu
reward3.983559 VESTS
curatorhuti
permlinkkey-to-data-security-sustaining-convenience
payout must be claimedtrue
Transaction InfoBlock #33634195/Virtual Operation 4294967295:196
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "hatu",
      "reward": "3.983559 VESTS",
      "curator": "huti",
      "permlink": "key-to-data-security-sustaining-convenience",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33634195,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 196,
  "timestamp": "2019-06-09T00:44:48",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.001 HP curation reward for @john371911 / smartsteem
2019/06/08 01:45:45
authorjohn371911
reward1.991890 VESTS
curatorhuti
permlinksmartsteem
payout must be claimedtrue
Transaction InfoBlock #33606659/Virtual Operation 4294967295:85
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "john371911",
      "reward": "1.991890 VESTS",
      "curator": "huti",
      "permlink": "smartsteem",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33606659,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 85,
  "timestamp": "2019-06-08T01:45:45",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
huticlaimed reward balance: 0.021 HBD, 0.070 HP
2019/06/07 00:08:33
accounthuti
reward hbd0.021 HBD
reward hive0.000 HIVE
reward vests113.557921 VESTS
Transaction InfoBlock #33575956/Trx 243b28d07ae9ee495072055b3c65b38ab1c5c094
View Raw JSON Data
{
  "op": [
    "claim_reward_balance",
    {
      "account": "huti",
      "reward_hbd": "0.021 HBD",
      "reward_hive": "0.000 HIVE",
      "reward_vests": "113.557921 VESTS"
    }
  ],
  "block": 33575956,
  "trx_id": "243b28d07ae9ee495072055b3c65b38ab1c5c094",
  "op_in_trx": 0,
  "timestamp": "2019-06-07T00:08:33",
  "virtual_op": false,
  "trx_in_block": 18
}
everslotheffective vote applied for @huti / php-3-if-if-elseif-else
2019/06/06 06:17:21
votereversloth
authorhuti
weight176389
rshares81593080794
permlinkphp-3-if-if-elseif-else
pending payout0.056 HBD
total vote weight331472
Transaction InfoBlock #33554559/Trx 3bd9329165e1c6ee8953fa7304a35b3fd777b0fe
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "eversloth",
      "author": "huti",
      "weight": 176389,
      "rshares": 81593080794,
      "permlink": "php-3-if-if-elseif-else",
      "pending_payout": "0.056 HBD",
      "total_vote_weight": 331472
    }
  ],
  "block": 33554559,
  "trx_id": "3bd9329165e1c6ee8953fa7304a35b3fd777b0fe",
  "op_in_trx": 1,
  "timestamp": "2019-06-06T06:17:21",
  "virtual_op": true,
  "trx_in_block": 8
}
2019/06/06 06:17:21
votereversloth
authorhuti
weight2500 (25.00%)
permlinkphp-3-if-if-elseif-else
Transaction InfoBlock #33554559/Trx 3bd9329165e1c6ee8953fa7304a35b3fd777b0fe
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "eversloth",
      "author": "huti",
      "weight": 2500,
      "permlink": "php-3-if-if-elseif-else"
    }
  ],
  "block": 33554559,
  "trx_id": "3bd9329165e1c6ee8953fa7304a35b3fd777b0fe",
  "op_in_trx": 0,
  "timestamp": "2019-06-06T06:17:21",
  "virtual_op": false,
  "trx_in_block": 8
}
steemitageffective vote applied for @huti / php-3-if-if-elseif-else
2019/06/06 02:12:15
votersteemitag
authorhuti
weight13045
rshares3419529775
permlinkphp-3-if-if-elseif-else
pending payout0.012 HBD
total vote weight155083
Transaction InfoBlock #33549663/Trx 26864571ed0566ec2945919721757c156bbc84dd
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "steemitag",
      "author": "huti",
      "weight": 13045,
      "rshares": 3419529775,
      "permlink": "php-3-if-if-elseif-else",
      "pending_payout": "0.012 HBD",
      "total_vote_weight": 155083
    }
  ],
  "block": 33549663,
  "trx_id": "26864571ed0566ec2945919721757c156bbc84dd",
  "op_in_trx": 1,
  "timestamp": "2019-06-06T02:12:15",
  "virtual_op": true,
  "trx_in_block": 30
}
2019/06/06 02:12:15
votersteemitag
authorhuti
weight1000 (10.00%)
permlinkphp-3-if-if-elseif-else
Transaction InfoBlock #33549663/Trx 26864571ed0566ec2945919721757c156bbc84dd
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "steemitag",
      "author": "huti",
      "weight": 1000,
      "permlink": "php-3-if-if-elseif-else"
    }
  ],
  "block": 33549663,
  "trx_id": "26864571ed0566ec2945919721757c156bbc84dd",
  "op_in_trx": 0,
  "timestamp": "2019-06-06T02:12:15",
  "virtual_op": false,
  "trx_in_block": 30
}
superhardnesseffective vote applied for @huti / php-3-if-if-elseif-else
2019/06/06 01:58:36
votersuperhardness
authorhuti
weight23885
rshares6282369399
permlinkphp-3-if-if-elseif-else
pending payout0.010 HBD
total vote weight142038
Transaction InfoBlock #33549390/Trx fb8a0a45adffdcb4f163badaa05ee0270095d869
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "superhardness",
      "author": "huti",
      "weight": 23885,
      "rshares": 6282369399,
      "permlink": "php-3-if-if-elseif-else",
      "pending_payout": "0.010 HBD",
      "total_vote_weight": 142038
    }
  ],
  "block": 33549390,
  "trx_id": "fb8a0a45adffdcb4f163badaa05ee0270095d869",
  "op_in_trx": 1,
  "timestamp": "2019-06-06T01:58:36",
  "virtual_op": true,
  "trx_in_block": 15
}
2019/06/06 01:58:36
votersuperhardness
authorhuti
weight10 (0.10%)
permlinkphp-3-if-if-elseif-else
Transaction InfoBlock #33549390/Trx fb8a0a45adffdcb4f163badaa05ee0270095d869
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "superhardness",
      "author": "huti",
      "weight": 10,
      "permlink": "php-3-if-if-elseif-else"
    }
  ],
  "block": 33549390,
  "trx_id": "fb8a0a45adffdcb4f163badaa05ee0270095d869",
  "op_in_trx": 0,
  "timestamp": "2019-06-06T01:58:36",
  "virtual_op": false,
  "trx_in_block": 15
}
hutieffective vote applied for @huti / php-3-if-if-elseif-else
2019/06/06 01:43:54
voterhuti
authorhuti
weight1967 (19.67%)
rshares13772370045
permlinkphp-3-if-if-elseif-else
pending payout0.007 HBD
total vote weight118073
Transaction InfoBlock #33549099/Trx ba8e989b48a4a1e0abb94deaa36108f0d1681688
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "huti",
      "weight": 1967,
      "rshares": 13772370045,
      "permlink": "php-3-if-if-elseif-else",
      "pending_payout": "0.007 HBD",
      "total_vote_weight": 118073
    }
  ],
  "block": 33549099,
  "trx_id": "ba8e989b48a4a1e0abb94deaa36108f0d1681688",
  "op_in_trx": 1,
  "timestamp": "2019-06-06T01:43:54",
  "virtual_op": true,
  "trx_in_block": 1
}
2019/06/06 01:43:54
voterhuti
authorhuti
weight10000 (100.00%)
permlinkphp-3-if-if-elseif-else
Transaction InfoBlock #33549099/Trx ba8e989b48a4a1e0abb94deaa36108f0d1681688
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "huti",
      "weight": 10000,
      "permlink": "php-3-if-if-elseif-else"
    }
  ],
  "block": 33549099,
  "trx_id": "ba8e989b48a4a1e0abb94deaa36108f0d1681688",
  "op_in_trx": 0,
  "timestamp": "2019-06-06T01:43:54",
  "virtual_op": false,
  "trx_in_block": 1
}
hutipublished a new post: php-3-if-if-elseif-else
2019/06/06 01:43:39
body조건문은 프로그래밍에서 자주 쓰는 논리 언어이다. IF문이라고 하기도 하는데, 한국말로 표현하자면, '만약 ~라면, ~을 실행하라.'라는 의미이다. 조건문은 두 부분으로 나눌 수 있다. '만약 ~라면,' 부분과 '~을 실행하라.' 부분으로. 전자는 진위를 판단할 수 있는 조건문이고, 후자는 조건문이 만족되었을 때 실행할 구문이다. PHP에서는 거짓을 나타내는 여섯 가지 값이 있다. 숫자는 0과 0.0, 문자열은 아무 것도 담지 않은 문자열과 0이라는 문자열, false와 null이라는 특수한 문자, 이 여섯 가지를 제외한 값은 모두 참으로 인식한다. <?php $test='php'; //변수선언 if($test == 'php'){ //조건문 print "$test ".'test입니다.'."\n"; //실행문 } $id='test'; if($id){ //조건문 print "$id".'님 환영합니다.'."\n"; //실행문 } ?> 위의 코드를 보면, 두 개의 조건문이 있다. 첫번째 조건문은 $test 변수와 php 문자열이 같은지 확인한다. 두 조건이 같으면, 조건문은 1을 반환하면서 참이 된다. 여기서 주의할 점은 if문에서 같다는 표현은 등호(=)를 두 개 쓴다는 점이다. 등호를 하나만 쓰면, 변수에 값을 넣어준다는 의미가 도니다. 두번째 조건문은 $id변수에 값이 있는지 확인한다. $id변수에 test문자열이 들어가므로 이 조건문은 참이 된다. 아래는 위의 코드를 실행한 화면이다. ![](https://cdn.steemitimages.com/DQmdMkTypxJEFp38MLeFAGuUPwvqki87vcZHNnKE9VEepcY/image.png) if문은 elseif나 else와 많이 사용된다. elseif는 여러 개의 조건문을 표현할 때 사용하고, else는 조건문이 거짓일 때 실행할 구문을 표현할 때 사용한다. <?php $gender=''; //변수선언 if($gender == 'male'){ //조건문 print "남성 회원님을 위한 추천 아이템!\n"; //실행문 } elseif($gender == 'female'){ //if가 거짓일 때 조건 비교 print "여성 회원님을 위한 추천 아이템!\n"; //실행문 } else{ print "모두를 위한 추천 아이템!\n"; //if와 elseif가 거짓일 때 실행 } ?> 위의 예제에서는 변수에 빈 문자열이 들어가 있기 때문에 if와 elseif의 조건문이 모두 거짓이다. 그래서 else에 있는 실행문이 실행된다. ![](https://cdn.steemitimages.com/DQmY1UYeCPh2XRoQRE5LSw6ebnSnCKjVcdBmXkfpok2dFNj/image.png) if~else 구문은 ?와 :으로 축약이 가능하다. <?php $select="바다"; if($select=="바다"){ print "내일은 바다로 갑니다.\n"; } else{ print "내일은 산으로 갑니다.\n"; } ?> 위의 구문을 축약형으로 바꾸면, 아래와 같다. <?php $select="바다"; $select=="바다" ? print "내일은 바다로 갑니다.\n": print "내일은 산으로 갑니다.\n"; ?> 위의 코드를 보면, if문이 보이지 않는다. 물음표(?)가 if문을 대신하고, 콜론(:)이 else문을 대신한다. 취약점 분석을 하다 보면, 이런 축약형도 나오기 때문에 축약형을 알아 둘 필요가 있다. 아래는 위의 코드를 실행한 결과이다. ![](https://cdn.steemitimages.com/DQmUTFH1VHpQkL9iBX1yYjxrKYypfW1CqMyXEMbp7GtDnj2/image.png) * 이 내용은 칼리!도커를해킹하다 2부의 아주 일부입니다. 책에서 더 자세히 다룹니다. 2부는 2019년 6월 출간 예정입니다. * 칼리!도커를해킹하다 1부는 2부를 공부하기 전에 알아야 할 내용으로 이미 전자책으로 출간되었습니다. 리디북스 https://ridibooks.com/v2/Detail?id=2853000018&fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE 예스24 http://www.yes24.com/Product/Goods/71536932?scode=032&OzSrank=4 알라딘 https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326
title[웹프로그래밍과 PHP] 3. 조건문(if,if~elseif~else, ~?~:축약형)
authorhuti
permlinkphp-3-if-if-elseif-else
json metadata{"tags":["kr","kr-it","php","web","kr-tech"],"image":["https://cdn.steemitimages.com/DQmdMkTypxJEFp38MLeFAGuUPwvqki87vcZHNnKE9VEepcY/image.png","https://cdn.steemitimages.com/DQmY1UYeCPh2XRoQRE5LSw6ebnSnCKjVcdBmXkfpok2dFNj/image.png","https://cdn.steemitimages.com/DQmUTFH1VHpQkL9iBX1yYjxrKYypfW1CqMyXEMbp7GtDnj2/image.png"],"links":["https://ridibooks.com/v2/Detail?id=2853000018&amp;fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE","http://www.yes24.com/Product/Goods/71536932?scode=032&amp;OzSrank=4","https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326"],"app":"steemit/0.1","format":"markdown"}
parent author
parent permlinkkr
Transaction InfoBlock #33549094/Trx 6057509d1e55cbb3a757fbe328a1f5aebc798e34
View Raw JSON Data
{
  "op": [
    "comment",
    {
      "body": "조건문은 프로그래밍에서 자주 쓰는 논리 언어이다. IF문이라고 하기도 하는데, 한국말로 표현하자면, '만약 ~라면, ~을 실행하라.'라는 의미이다. 조건문은 두 부분으로 나눌 수 있다. '만약 ~라면,' 부분과 '~을 실행하라.' 부분으로. 전자는 진위를 판단할 수 있는 조건문이고, 후자는 조건문이 만족되었을 때 실행할 구문이다.\n\nPHP에서는 거짓을 나타내는 여섯 가지 값이 있다. 숫자는 0과 0.0, 문자열은 아무 것도 담지 않은 문자열과 0이라는 문자열, false와 null이라는 특수한 문자, 이 여섯 가지를 제외한 값은 모두 참으로 인식한다.\n\n \n<?php\n\n$test='php'; //변수선언\n\nif($test == 'php'){           //조건문\n\n           print \"$test \".'test입니다.'.\"\\n\";      //실행문\n\n}\n\n$id='test';\n\nif($id){   //조건문\n\n           print \"$id\".'님 환영합니다.'.\"\\n\";    //실행문\n\n}\n\n \n\n?>\n\n\n\n\n위의 코드를 보면, 두 개의 조건문이 있다. \n\n첫번째 조건문은 $test 변수와 php 문자열이 같은지 확인한다. 두 조건이 같으면, 조건문은 1을 반환하면서 참이 된다. \n\n여기서 주의할 점은 if문에서 같다는 표현은 등호(=)를 두 개 쓴다는 점이다. 등호를 하나만 쓰면, 변수에 값을 넣어준다는 의미가 도니다. \n\n두번째 조건문은 $id변수에 값이 있는지 확인한다. $id변수에 test문자열이 들어가므로 이 조건문은 참이 된다. \n\n아래는 위의 코드를 실행한 화면이다. \n![](https://cdn.steemitimages.com/DQmdMkTypxJEFp38MLeFAGuUPwvqki87vcZHNnKE9VEepcY/image.png)\n \n\n\nif문은 elseif나 else와 많이 사용된다. elseif는 여러 개의 조건문을 표현할 때 사용하고, else는 조건문이 거짓일 때 실행할 구문을 표현할 때 사용한다. \n\n \n\n\n<?php\n\n$gender=''; //변수선언\n\nif($gender == 'male'){      //조건문\n\n           print \"남성 회원님을 위한 추천 아이템!\\n\";           //실행문\n\n}\n\nelseif($gender == 'female'){          //if가 거짓일 때 조건 비교\n\n           print \"여성 회원님을 위한 추천 아이템!\\n\";           //실행문\n\n}\n\nelse{\n\n           print \"모두를 위한 추천 아이템!\\n\";         //if와 elseif가 거짓일 때 실행\n\n}\n\n \n\n?>\n\n\n\n\n위의 예제에서는 변수에 빈 문자열이 들어가 있기 때문에 if와 elseif의 조건문이 모두 거짓이다. 그래서 else에 있는 실행문이 실행된다.\n\n\n![](https://cdn.steemitimages.com/DQmY1UYeCPh2XRoQRE5LSw6ebnSnCKjVcdBmXkfpok2dFNj/image.png)\n\n\n\n\nif~else 구문은 ?와 :으로 축약이 가능하다.\n\n<?php\n\n$select=\"바다\";\n\nif($select==\"바다\"){\n\nprint \"내일은 바다로 갑니다.\\n\";\n\n}\n\nelse{\n\nprint \"내일은 산으로 갑니다.\\n\";\n\n}\n\n?>\n\n \n\n위의 구문을 축약형으로 바꾸면, 아래와 같다.\n\n\n<?php\n\n$select=\"바다\";\n\n$select==\"바다\" ? print \"내일은 바다로 갑니다.\\n\":\n\nprint \"내일은 산으로 갑니다.\\n\";\n\n?>\n\n\n\n\n위의 코드를 보면, if문이 보이지 않는다. 물음표(?)가 if문을 대신하고, 콜론(:)이 else문을 대신한다. 취약점 분석을 하다 보면, 이런 축약형도 나오기 때문에 축약형을 알아 둘 필요가 있다. 아래는 위의 코드를 실행한 결과이다.\n\n ![](https://cdn.steemitimages.com/DQmUTFH1VHpQkL9iBX1yYjxrKYypfW1CqMyXEMbp7GtDnj2/image.png)\n\n\n\n* 이 내용은 칼리!도커를해킹하다 2부의 아주 일부입니다. 책에서 더 자세히 다룹니다. 2부는 2019년 6월 출간 예정입니다. \n\n* 칼리!도커를해킹하다 1부는 2부를 공부하기 전에 알아야 할 내용으로 이미 전자책으로 출간되었습니다.\n\n리디북스\nhttps://ridibooks.com/v2/Detail?id=2853000018&fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE\n\n\n예스24 http://www.yes24.com/Product/Goods/71536932?scode=032&OzSrank=4\n\n\n\n알라딘 https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326",
      "title": "[웹프로그래밍과 PHP] 3. 조건문(if,if~elseif~else, ~?~:축약형)",
      "author": "huti",
      "permlink": "php-3-if-if-elseif-else",
      "json_metadata": "{\"tags\":[\"kr\",\"kr-it\",\"php\",\"web\",\"kr-tech\"],\"image\":[\"https://cdn.steemitimages.com/DQmdMkTypxJEFp38MLeFAGuUPwvqki87vcZHNnKE9VEepcY/image.png\",\"https://cdn.steemitimages.com/DQmY1UYeCPh2XRoQRE5LSw6ebnSnCKjVcdBmXkfpok2dFNj/image.png\",\"https://cdn.steemitimages.com/DQmUTFH1VHpQkL9iBX1yYjxrKYypfW1CqMyXEMbp7GtDnj2/image.png\"],\"links\":[\"https://ridibooks.com/v2/Detail?id=2853000018&amp;fbclid=IwAR3q5hlVZeX20HWAPjWbDnqg8AqYJhx5vWQG2zLxH4xYpS0eWxOdeFLInNE\",\"http://www.yes24.com/Product/Goods/71536932?scode=032&amp;OzSrank=4\",\"https://www.aladin.co.kr/shop/wproduct.aspx?ItemId=187404326\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}",
      "parent_author": "",
      "parent_permlink": "kr"
    }
  ],
  "block": 33549094,
  "trx_id": "6057509d1e55cbb3a757fbe328a1f5aebc798e34",
  "op_in_trx": 0,
  "timestamp": "2019-06-06T01:43:39",
  "virtual_op": false,
  "trx_in_block": 0
}
2019/06/05 23:53:03
authortimcliff
reward5.976395 VESTS
curatorhuti
permlinkhardfork-21-steem-proposal-system-sps-economic-improvement-proposal-eip
payout must be claimedtrue
Transaction InfoBlock #33546883/Virtual Operation 4294967295:254
View Raw JSON Data
{
  "op": [
    "curation_reward",
    {
      "author": "timcliff",
      "reward": "5.976395 VESTS",
      "curator": "huti",
      "permlink": "hardfork-21-steem-proposal-system-sps-economic-improvement-proposal-eip",
      "payout_must_be_claimed": true
    }
  ],
  "block": 33546883,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 254,
  "timestamp": "2019-06-05T23:53:03",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutiupdated payout for php-1-php
2019/06/04 23:12:36
authorhuti
permlinkphp-1-php
Transaction InfoBlock #33517310/Virtual Operation 4294967295:6
View Raw JSON Data
{
  "op": [
    "comment_payout_update",
    {
      "author": "huti",
      "permlink": "php-1-php"
    }
  ],
  "block": 33517310,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 6,
  "timestamp": "2019-06-04T23:12:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.050 HBD reward share for php-1-php
2019/06/04 23:12:36
authorhuti
payout0.050 HBD
permlinkphp-1-php
author rewards108
total payout value0.042 HBD
curator payout value0.007 HBD
beneficiary payout value0.000 HBD
Transaction InfoBlock #33517310/Virtual Operation 4294967295:5
View Raw JSON Data
{
  "op": [
    "comment_reward",
    {
      "author": "huti",
      "payout": "0.050 HBD",
      "permlink": "php-1-php",
      "author_rewards": 108,
      "total_payout_value": "0.042 HBD",
      "curator_payout_value": "0.007 HBD",
      "beneficiary_payout_value": "0.000 HBD"
    }
  ],
  "block": 33517310,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 5,
  "timestamp": "2019-06-04T23:12:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
hutireceived 0.021 HBD, 0.066 HP author reward for @huti / php-1-php
2019/06/04 23:12:36
authorhuti
permlinkphp-1-php
hbd payout0.021 HBD
hive payout0.000 HIVE
vesting payout107.581526 VESTS
payout must be claimedtrue
curators vesting payout39.845009 VESTS
Transaction InfoBlock #33517310/Virtual Operation 4294967295:4
View Raw JSON Data
{
  "op": [
    "author_reward",
    {
      "author": "huti",
      "permlink": "php-1-php",
      "hbd_payout": "0.021 HBD",
      "hive_payout": "0.000 HIVE",
      "vesting_payout": "107.581526 VESTS",
      "payout_must_be_claimed": true,
      "curators_vesting_payout": "39.845009 VESTS"
    }
  ],
  "block": 33517310,
  "trx_id": "0000000000000000000000000000000000000000",
  "op_in_trx": 4,
  "timestamp": "2019-06-04T23:12:36",
  "virtual_op": true,
  "trx_in_block": 4294967295
}
everslotheffective vote applied for @huti / php-2-php
2019/06/02 14:32:15
votereversloth
authorhuti
weight187178
rshares80957364591
permlinkphp-2-php
pending payout0.057 HBD
total vote weight318257
Transaction InfoBlock #33449375/Trx b3b510cfad0367c4aabb9dddbf9b2e838e79985d
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "eversloth",
      "author": "huti",
      "weight": 187178,
      "rshares": 80957364591,
      "permlink": "php-2-php",
      "pending_payout": "0.057 HBD",
      "total_vote_weight": 318257
    }
  ],
  "block": 33449375,
  "trx_id": "b3b510cfad0367c4aabb9dddbf9b2e838e79985d",
  "op_in_trx": 1,
  "timestamp": "2019-06-02T14:32:15",
  "virtual_op": true,
  "trx_in_block": 0
}
everslothupvoted (25.00%) @huti / php-2-php
2019/06/02 14:32:15
votereversloth
authorhuti
weight2500 (25.00%)
permlinkphp-2-php
Transaction InfoBlock #33449375/Trx b3b510cfad0367c4aabb9dddbf9b2e838e79985d
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "eversloth",
      "author": "huti",
      "weight": 2500,
      "permlink": "php-2-php"
    }
  ],
  "block": 33449375,
  "trx_id": "b3b510cfad0367c4aabb9dddbf9b2e838e79985d",
  "op_in_trx": 0,
  "timestamp": "2019-06-02T14:32:15",
  "virtual_op": false,
  "trx_in_block": 0
}
steemitageffective vote applied for @huti / php-2-php
2019/06/02 10:38:48
votersteemitag
authorhuti
weight13032
rshares3416442556
permlinkphp-2-php
pending payout0.010 HBD
total vote weight131079
Transaction InfoBlock #33444714/Trx a1ce13600043672a028831d3e7f339cc0b6494ea
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "steemitag",
      "author": "huti",
      "weight": 13032,
      "rshares": 3416442556,
      "permlink": "php-2-php",
      "pending_payout": "0.010 HBD",
      "total_vote_weight": 131079
    }
  ],
  "block": 33444714,
  "trx_id": "a1ce13600043672a028831d3e7f339cc0b6494ea",
  "op_in_trx": 1,
  "timestamp": "2019-06-02T10:38:48",
  "virtual_op": true,
  "trx_in_block": 7
}
steemitagupvoted (10.00%) @huti / php-2-php
2019/06/02 10:38:48
votersteemitag
authorhuti
weight1000 (10.00%)
permlinkphp-2-php
Transaction InfoBlock #33444714/Trx a1ce13600043672a028831d3e7f339cc0b6494ea
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "steemitag",
      "author": "huti",
      "weight": 1000,
      "permlink": "php-2-php"
    }
  ],
  "block": 33444714,
  "trx_id": "a1ce13600043672a028831d3e7f339cc0b6494ea",
  "op_in_trx": 0,
  "timestamp": "2019-06-02T10:38:48",
  "virtual_op": false,
  "trx_in_block": 7
}
2019/06/02 10:12:03
voterhuti
authorhatu
weight371 (3.71%)
rshares12447357147
permlinkkey-to-data-security-sustaining-convenience
pending payout192.883 HBD
total vote weight18172984
Transaction InfoBlock #33444180/Trx f54f5e4c600acc68ef8295cdef12f9c4c97af6b3
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "hatu",
      "weight": 371,
      "rshares": 12447357147,
      "permlink": "key-to-data-security-sustaining-convenience",
      "pending_payout": "192.883 HBD",
      "total_vote_weight": 18172984
    }
  ],
  "block": 33444180,
  "trx_id": "f54f5e4c600acc68ef8295cdef12f9c4c97af6b3",
  "op_in_trx": 1,
  "timestamp": "2019-06-02T10:12:03",
  "virtual_op": true,
  "trx_in_block": 20
}
2019/06/02 10:12:03
voterhuti
authorhatu
weight10000 (100.00%)
permlinkkey-to-data-security-sustaining-convenience
Transaction InfoBlock #33444180/Trx f54f5e4c600acc68ef8295cdef12f9c4c97af6b3
View Raw JSON Data
{
  "op": [
    "vote",
    {
      "voter": "huti",
      "author": "hatu",
      "weight": 10000,
      "permlink": "key-to-data-security-sustaining-convenience"
    }
  ],
  "block": 33444180,
  "trx_id": "f54f5e4c600acc68ef8295cdef12f9c4c97af6b3",
  "op_in_trx": 0,
  "timestamp": "2019-06-02T10:12:03",
  "virtual_op": false,
  "trx_in_block": 20
}
hutieffective vote applied for @john371911 / smartsteem
2019/06/02 10:11:57
voterhuti
authorjohn371911
weight190 (1.90%)
rshares12702209356
permlinksmartsteem
pending payout356.773 HBD
total vote weight25840670
Transaction InfoBlock #33444178/Trx ffa5d8a256c1679310ad5c0ca941d6eb13b1405e
View Raw JSON Data
{
  "op": [
    "effective_comment_vote",
    {
      "voter": "huti",
      "author": "john371911",
      "weight": 190,
      "rshares": 12702209356,
      "permlink": "smartsteem",
      "pending_payout": "356.773 HBD",
      "total_vote_weight": 25840670
    }
  ],
  "block": 33444178,
  "trx_id": "ffa5d8a256c1679310ad5c0ca941d6eb13b1405e",
  "op_in_trx": 1,
  "timestamp": "2019-06-02T10:11:57",
  "virtual_op": true,
  "trx_in_block": 5
}

Account Metadata

POSTING JSON METADATA
profile{"cover_image":"https://img.esteem.ws/lmmb1ndqfh.jpg","profile_image":"https://img.esteem.ws/rswxafcygt.jpg","name":"huti","about":"humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!","location":"seongho"}
JSON METADATA
profile{"cover_image":"https://img.esteem.ws/lmmb1ndqfh.jpg","profile_image":"https://img.esteem.ws/rswxafcygt.jpg","name":"huti","about":"humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!","location":"seongho"}
{
  "posting_json_metadata": {
    "profile": {
      "cover_image": "https://img.esteem.ws/lmmb1ndqfh.jpg",
      "profile_image": "https://img.esteem.ws/rswxafcygt.jpg",
      "name": "huti",
      "about": "humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!",
      "location": "seongho"
    }
  },
  "json_metadata": {
    "profile": {
      "cover_image": "https://img.esteem.ws/lmmb1ndqfh.jpg",
      "profile_image": "https://img.esteem.ws/rswxafcygt.jpg",
      "name": "huti",
      "about": "humanism+it = huti. 저서 : 악성코드, 어서 와 해킹은 처음이지. 쓰고 싶은 글을 쓰자!",
      "location": "seongho"
    }
  }
}

Auth Keys

Owner
Single Signature
Public Keys
STM7gWoLHy5FUKc3gdbEkUzKmK7bJnWQNxQLxwvDtnu8t2XifgB2z1/1
Active
Single Signature
Public Keys
STM7EwbwkzW1QXn5wykAnBjiRunr6VLjJFQzw889xRSsFwta9WdvJ1/1
Posting
Single Signature
Public Keys
STM8GngvsHBnNgeEAbCmcGzhbpGZxFCbNoHcxSueghdPUm2B2HuEN1/1
App Permissions
Memo
STM6bdmAeo9mWQkfaBs51npqmBkxRo7GKrwSKJwRkWr6ynWPREDoG
{
  "owner": {
    "weight_threshold": 1,
    "account_auths": [],
    "key_auths": [
      [
        "STM7gWoLHy5FUKc3gdbEkUzKmK7bJnWQNxQLxwvDtnu8t2XifgB2z",
        1
      ]
    ]
  },
  "active": {
    "weight_threshold": 1,
    "account_auths": [],
    "key_auths": [
      [
        "STM7EwbwkzW1QXn5wykAnBjiRunr6VLjJFQzw889xRSsFwta9WdvJ",
        1
      ]
    ]
  },
  "posting": {
    "weight_threshold": 1,
    "account_auths": [
      [
        "dtube.app",
        1
      ]
    ],
    "key_auths": [
      [
        "STM8GngvsHBnNgeEAbCmcGzhbpGZxFCbNoHcxSueghdPUm2B2HuEN",
        1
      ]
    ]
  },
  "memo": "STM6bdmAeo9mWQkfaBs51npqmBkxRo7GKrwSKJwRkWr6ynWPREDoG"
}

Witness Votes

0 / 30
No active witness votes.
[]